[gmx-users] avx2 with gcc 4.8.3

Harry Mark Greenblatt harry.greenblatt at weizmann.ac.il
Tue Dec 16 09:20:04 CET 2014


BS"D



CMakeFiles/CMakeError.log should show why cmake thinks your gcc doesn't
support -mavx2.


Here is where mavx2 is mentioned in the CMakeError.log:

Performing C SOURCE FILE Test C_SIMD_COMPILES_FLAG_mavx2 failed with the following output:
Change Dir: /opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec653850785/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec653850785.dir/build.make CMakeFiles/cmTryCompileExec653850785.dir/build
gmake[1]: Entering directory `/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec653850785.dir/src.c.o
/opt/gcc483/bin/gcc   -Wno-maybe-uninitialized -Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wpointer-arith -Wall -Wno-unused -Wunused-value -Wunused-parameter  -DC_SIMD_COMPILES_FLAG_mavx2  -mavx2   -o CMakeFiles/cmTryCompileExec653850785.dir/src.c.o   -c /opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/src.c
/tmp/ccgMSlsZ.s: Assembler messages:
/tmp/ccgMSlsZ.s:26: Error: suffix or operands invalid for `vpaddd'
/tmp/ccgMSlsZ.s:31: Error: suffix or operands invalid for `vpmovmskb'
gmake[1]: *** [CMakeFiles/cmTryCompileExec653850785.dir/src.c.o] Error 1
gmake[1]: Leaving directory `/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec653850785/fast] Error 2

Source file was:
#include<immintrin.h>
                              int main(){__m256i x=_mm256_set1_epi32(5);x=_mm256_add_epi32(x,x);return _mm256_movemask_epi8(x);}
.
.
.
Performing C++ SOURCE FILE Test CXX_SIMD_COMPILES_FLAG_mavx2 failed with the following output:
Change Dir: /opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec373526268/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec373526268.dir/build.make CMakeFiles/cmTryCompileExec373526268.dir/build
gmake[1]: Entering directory `/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec373526268.dir/src.cxx.o
/opt/gcc483/bin/c++    -Wextra -Wno-missing-field-initializers -Wpointer-arith -Wall -Wno-unused-function  -DCXX_SIMD_COMPILES_FLAG_mavx2  -mavx2   -o CMakeFiles/cmTryCompileExec373526268.dir/src.cxx.o -c /opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/src.cxx
/tmp/ccRRR9xH.s: Assembler messages:
/tmp/ccRRR9xH.s:24: Error: suffix or operands invalid for `vpaddd'
/tmp/ccRRR9xH.s:29: Error: suffix or operands invalid for `vpmovmskb'
gmake[1]: *** [CMakeFiles/cmTryCompileExec373526268.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory `/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec373526268/fast] Error 2

Source file was:
#include<immintrin.h>
                                int main(){__m256i x=_mm256_set1_epi32(5);x=_mm256_add_epi32(x,x);return _mm256_movemask_epi8(x);}
.
.
.
and the very last error message in the file was:

Performing C++ SOURCE FILE Test CXX_SIMD_COMPILES_FLAG_ failed with the following output:
Change Dir: /opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1392706959/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1392706959.dir/build.make CMakeFiles/cmTryCompileExec1392706959.dir/build
gmake[1]: Entering directory `/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec1392706959.dir/src.cxx.o
/opt/gcc483/bin/c++    -Wextra -Wno-missing-field-initializers -Wpointer-arith -Wall -Wno-unused-function  -DCXX_SIMD_COMPILES_FLAG_   -o CMakeFiles/cmTryCompileExec1392706959.dir/src.cxx.o -c /opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/src.cxx
/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’:
/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/src.cxx:2:44: error: ‘__m256i’ was not declared in this scope
                                 int main(){__m256i x=_mm256_set1_epi32(5);x=_mm256_add_epi32(x,x);return _mm256_movemask_epi8(x);}
                                            ^
/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/src.cxx:2:52: error: expected ‘;’ before ‘x’
                                 int main(){__m256i x=_mm256_set1_epi32(5);x=_mm256_add_epi32(x,x);return _mm256_movemask_epi8(x);}
                                                    ^
/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/src.cxx:2:75: error: ‘x’ was not declared in this scope
                                 int main(){__m256i x=_mm256_set1_epi32(5);x=_mm256_add_epi32(x,x);return _mm256_movemask_epi8(x);}
                                                                           ^
/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/src.cxx:2:97: error: ‘_mm256_add_epi32’ was not declared in this scope
                                 int main(){__m256i x=_mm256_set1_epi32(5);x=_mm256_add_epi32(x,x);return _mm256_movemask_epi8(x);}
                                                                                                 ^
/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp/src.cxx:2:128: error: ‘_mm256_movemask_epi8’ was not declared in this scope
                                 int main(){__m256i x=_mm256_set1_epi32(5);x=_mm256_add_epi32(x,x);return _mm256_movemask_epi8(x);}
                                                                                                                                ^
gmake[1]: *** [CMakeFiles/cmTryCompileExec1392706959.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory `/opt/gromacs-5.0.3/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1392706959/fast] Error 2

Source file was:
#include<immintrin.h>
                                int main(){__m256i x=_mm256_set1_epi32(5);x=_mm256_add_epi32(x,x);return _mm256_movemask_epi8(x);}

Thanks


Harry




-------------------------------------------------------------------------

Harry M. Greenblatt

Associate Staff Scientist

Dept of Structural Biology

Weizmann Institute of Science        Phone:  972-8-934-3625

234 Herzl St.                        Facsimile:   972-8-934-4159

Rehovot, 76100

Israel


Harry.Greenblatt at weizmann.ac.il<mailto:Harry.Greenblatt at weizmann.ac.il>









More information about the gromacs.org_gmx-users mailing list