Error met in installing GPU supported Gromacs2018.8

GROMACS version:2018.8

Here post your question

Dear all,

I met an error when I try to install gromacs 2018.8. The cmake step I used is here:
cmake … -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=OFF -DREGRESSIONTEST_PATH=…/…/regressiontests-2018.8 -DGMX_GPU=ON -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-11.7 -DGMX_CUDA_TARGET_SM=75 -DCMAKE_INSTALL_PREFIX=/usr/local/gromacs-18

And the error return is here:
[ 38%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/awh/biasparams.cpp.o
In file included from /home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/utility/arrayref.h:54,
from /home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:55:
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp: In function ‘gmx_int64_t gmx::{anonymous}::calcCheckCoveringInterval(const gmx::AwhParams&, const std::vectorgmx::DimParams&, const std::vectorgmx::GridAxis&)’:
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:62: error: ‘numeric_limits’ is not a member of ‘std’
137 | GMX_RELEASE_ASSERT(gridAxis[d].length()/sigma < std::numeric_limits::max(), “The axis length in units of sigma should fit in an int”);
| ^~~~~~~~~~~~~~
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/utility/gmxassert.h:67:15: note: in definition of macro ‘GMX_RELEASE_ASSERT’
67 | ((void) ((condition) ? (void)0 :
| ^~~~~~~~~
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:77: error: expected primary-expression before ‘int’
137 | GMX_RELEASE_ASSERT(gridAxis[d].length()/sigma < std::numeric_limits::max(), “The axis length in units of sigma should fit in an int”);
| ^~~
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/utility/gmxassert.h:67:15: note: in definition of macro ‘GMX_RELEASE_ASSERT’
67 | ((void) ((condition) ? (void)0 :
| ^~~~~~~~~
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:77: error: expected ‘)’ before ‘int’
137 | GMX_RELEASE_ASSERT(gridAxis[d].length()/sigma < std::numeric_limits::max(), “The axis length in units of sigma should fit in an int”);
| ^~~
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/utility/gmxassert.h:67:15: note: in definition of macro ‘GMX_RELEASE_ASSERT’
67 | ((void) ((condition) ? (void)0 :
| ^~~~~~~~~
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/utility/gmxassert.h:67:14: note: to match this ‘(’
67 | ((void) ((condition) ? (void)0 :
| ^
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:9: note: in expansion of macro ‘GMX_RELEASE_ASSERT’
137 | GMX_RELEASE_ASSERT(gridAxis[d].length()/sigma < std::numeric_limits::max(), “The axis length in units of sigma should fit in an int”);
| ^~~~~~~~~~~~~~~~~~
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:147: error: expected ‘)’ before ‘;’ token
137 | length()/sigma < std::numeric_limits::max(), “The axis length in units of sigma should fit in an int”);
| ^

In file included from /home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/utility/arrayref.h:54,
from /home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:55:
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/utility/gmxassert.h:67:13: note: to match this ‘(’
67 | ((void) ((condition) ? (void)0 :
| ^
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:9: note: in expansion of macro ‘GMX_RELEASE_ASSERT’
137 | GMX_RELEASE_ASSERT(gridAxis[d].length()/sigma < std::numeric_limits::max(), “The axis length in units of sigma should fit in an int”);
| ^~~~~~~~~~~~~~~~~~
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:147: error: expected ‘)’ before ‘;’ token
137 | length()/sigma < std::numeric_limits::max(), “The axis length in units of sigma should fit in an int”);
| ^

In file included from /home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/utility/arrayref.h:54,
from /home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:55:
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/utility/gmxassert.h:67:5: note: to match this ‘(’
67 | ((void) ((condition) ? (void)0 :
| ^
/home/deptadmin/Downloads/gromacs-2018.8/src/gromacs/awh/biasparams.cpp:137:9: note: in expansion of macro ‘GMX_RELEASE_ASSERT’
137 | GMX_RELEASE_ASSERT(gridAxis[d].length()/sigma < std::numeric_limits::max(), “The axis length in units of sigma should fit in an int”);
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [src/gromacs/CMakeFiles/libgromacs.dir/build.make:5739: src/gromacs/CMakeFiles/libgromacs.dir/awh/biasparams.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3334: src/gromacs/CMakeFiles/libgromacs.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Can anyone offer any insight and suggestions? Thank you!

Hello!

The question is answered here: Error compiling gromacs-2018.8