|
|
本帖最后由 退休老干部 于 2021-4-14 21:52 编辑
安装gromacs GPU版本make的时候开始报错:
[ 12%] Building NVCC (Device) object src/gromacs/CMakeFiles/libgromacs.dir/nbnxm/cuda/libgromacs_generated_nbnxm_cuda_kernel_F_prune.cu.o
In file included from /data/home/fxia/soft/gcc-5.3.0/include/c++/5.3.0/type_traits:35:0,
from /data/home/fxia/soft/gromacs-20.5/src/gromacs/math/vectypes.h:43,
from /data/home/fxia/soft/gromacs-20.5/src/gromacs/math/gmxcomplex.h:42,
from /data/home/fxia/soft/gromacs-20.5/src/gromacs/fft/fft.h:57,
from /data/home/fxia/soft/gromacs-20.5/src/gromacs/ewald/pme_gpu_internal.h:49,
from /data/home/fxia/soft/gromacs-20.5/src/gromacs/ewald/pme_gpu_internal.cpp:50:
/data/home/fxia/soft/gcc-5.3.0/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
ake[2]: *** [src/gromacs/CMakeFiles/libgromacs.dir/mdlib/tests/libgromacs_generated_settletestrunners.cu.o] Error 1
make[2]: *** [src/gromacs/CMakeFiles/libgromacs.dir/mdlib/libgromacs_generated_settle_cuda.cu.o] Error 1
/data/home/fxia/soft/gromacs-20.5/src/gromacs/ewald/pme_gpu_program.h(62): error: qualified name is not allowed
/data/home/fxia/soft/gromacs-20.5/src/gromacs/ewald/pme_gpu_program.h(62): error: this declaration has no storage class or type specifier
/data/home/fxia/soft/gromacs-20.5/src/gromacs/ewald/pme_gpu_program.h(62): error: expected a ";"
/data/home/fxia/soft/gromacs-20.5/src/gromacs/ewald/pme_gpu_program.h(67): error: identifier "PmeGpuProgramStorage" is undefined
/data/home/fxia/soft/gromacs-20.5/src/gromacs/ewald/pme_gpu_program.h(67): error: expected a ";"
/data/home/fxia/soft/gromacs-20.5/src/gromacs/ewald/pme_gpu_program.h(72): error: identifier "PmeGpuProgramHandle" is undefined…………
——————————————————————————————————————————————————————————
用的gcc版本是5.3.0(学校集群,非root用户,自己手动装的),cuda版本10.2,(试了9.0也是这个问题)编译的gromacs版本20.5。(旧的版本没有我要的功能)
之前google过,说是CMakelists.txt的问题,根据别人说的方法改了一下,比如set "$CXXFLAGS -std=C++11"好像都没怎么解决问题,毕竟还有别的错,所以请问各位大佬,这是由什么问题造成的?cuda版本和gcc版本不匹配?
|
|