# Error met in installing GPU supported Gromacs2018.8

**URL:** <https://gromacs.bioexcel.eu/t/error-met-in-installing-gpu-supported-gromacs2018-8/5718>\
**Category:** User discussions\
**Tags:** installation-error\
**Created:** [February 3, 2023, 3:21pm UTC](https://gromacs.bioexcel.eu/t/error-met-in-installing-gpu-supported-gromacs2018-8/5718 "2023-02-03T15:21:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wentao](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@Wentao](https://gromacs.bioexcel.eu/u/Wentao)\
**Post date:** [February 3, 2023, 3:21pm UTC](https://gromacs.bioexcel.eu/t/error-met-in-installing-gpu-supported-gromacs2018-8/5718/1 "2023-02-03T15:21:15Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![al42and](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/al42and/32/1393_2.png) [@al42and](https://gromacs.bioexcel.eu/u/al42and)\
**Post date:** [February 3, 2023, 3:58pm UTC](https://gromacs.bioexcel.eu/t/error-met-in-installing-gpu-supported-gromacs2018-8/5718/2 "2023-02-03T15:58:40Z")

</div>

Hello!

The question is answered here: [Error compiling gromacs-2018.8](https://gromacs.bioexcel.eu/t/error-compiling-gromacs-2018-8/5195)
