1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Compile options tweak

This commit is contained in:
Peter Boyle 2015-05-15 12:33:18 +01:00
parent 331f832c34
commit 9386522543
2 changed files with 4 additions and 3 deletions

View File

@ -3,13 +3,13 @@ WD=$1
echo $WD
case $WD in
build-icpc-avx)
CXX=icpc ../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -I -std=c++11" --enable-comms=none
CXX=icpc ../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11" --enable-comms=none
;;
build-icpc-avx512)
CXX=icpc ../configure --enable-simd=AVX512 CXXFLAGS="-xCOMMON-AVX512 -O3 -I -std=c++11" --host=none --enable-comms=none
CXX=icpc ../configure --enable-simd=AVX512 CXXFLAGS="-xCOMMON-AVX512 -O3 -std=c++11" --host=none --enable-comms=none
;;
build-icpc-mic)
CXX=icpc ../configure --host=none --enable-simd=AVX512 CXXFLAGS="-mmic -O3 -I -std=c++11" LDFLAGS=-mmic --enable-comms=none
CXX=icpc ../configure --host=none --enable-simd=AVX512 CXXFLAGS="-mmic -O3 -std=c++11" LDFLAGS=-mmic --enable-comms=none
;;
build-clang-avx)
CXX=clang++ ../configure --enable-simd=AVX CXXFLAGS="-mavx -O3 -std=c++11" --enable-comms=none

View File

@ -245,6 +245,7 @@ namespace Grid {
float f[8];
} u256;
//SWAP lanes
// FIXME .. icc complains with lib/lattice/Grid_lattice_reduction.h (49): (col. 20) warning #13211: Immediate parameter to intrinsic call too large
__m256 t0 = _mm256_permute2f128_ps(in.v, in.v, 1);
__m256 t1 = _mm256_permute_ps(in.v , 0b11011000);//real (0,2,1,3)
__m256 t2 = _mm256_permute_ps(t0 , 0b10001101);//imag (1,3,0,2)