# GROMACS install for gpu fails

**URL:** <https://gromacs.bioexcel.eu/t/gromacs-install-for-gpu-fails/3399>\
**Category:** User discussions\
**Tags:** installation-error\
**Created:** [January 4, 2022, 8:16pm UTC](https://gromacs.bioexcel.eu/t/gromacs-install-for-gpu-fails/3399 "2022-01-04T20:16:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nandini](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@Nandini](https://gromacs.bioexcel.eu/u/Nandini)\
**Post date:** [January 4, 2022, 8:16pm UTC](https://gromacs.bioexcel.eu/t/gromacs-install-for-gpu-fails/3399/1 "2022-01-04T20:16:07Z")

</div>

GROMACS version: 2020.3  
GROMACS modification:No

I am trying to compile gromacs for gpu install with gpu\_Arch=80 and with cuda 11.1 and it keeps failing with this error.  
cmake … -DGMX\_GPU=on -DGMX\_CUDA\_TARGET\_SM=80 -DGMX\_CUDA\_TARGET\_COMPUTE=80 -DCUDA\_TOOLKIT\_ROOT\_DIR=/program/gromacs-2020.3/cuda-11.1-8.0.5 -DGMX\_FFT\_LIBRARY=mkl -DGMX\_SIMD=AVX2\_256 -DGMX\_MPI=ON -DGMX\_GPLUSPLUS\_PATH=/program/gromacs-2020.3/gcc/8.3.0/bin/c++ -DCMAKE\_INSTALL\_PREFIX=/program/gromacs-2020.3/2020.3.avx2.gpu

Following is the error  
/program/gromacs-2020.3/gcc/8.3.0/bin/…/include/c++/8.3.0/type\_traits(781): error: identifier “decltype” is undefined

/program/gromacs-2020.3/gcc/8.3.0/bin/…/include/c++/8.3.0/type\_traits(781): error: expected a “)”

/program/gromacs-2020.3/gcc/8.3.0/bin/…/include/c++/8.3.0/type\_traits(792): error: overloaded function “\_\_cxxabiv1::std::\_\_do\_is\_destructible\_impl::\_\_test” is not a type name

/program/gromacs-2020.3/gcc/8.3.0/bin/…/include/c++/8.3.0/type\_traits(792): error: expected a “)”

Error limit reached.  
100 errors detected in the compilation of “/media/ephemeral0/install/gromacs-2020.3/src/gromacs/utility/cuda\_version\_information.cu”.  
Compilation terminated.  
CMake Error at libgromacs\_generated\_cuda\_version\_information.cu.o.Release.cmake:280 (message):  
Error generating file  
/media/ephemeral0/install/gromacs-2020.3/build/src/gromacs/CMakeFiles/libgromacs.dir/utility/./libgromacs\_generated\_cuda\_version\_information.cu.o

/program/gromacs-2020.3/cuda-11.1-8.0.5/include/vector\_types.h(421): error: identifier “constexpr” is undefined

/program/gromacs-2020.3/cuda-11.1-8.0.5/include/vector\_types.h(421): error: member function with the same name as its class must be a constructor

/program/gromacs-2020.3/cuda-11.1-8.0.5/include/vector\_types.h(421): error: expected a “;”

Let me know the issue please.

Thanks  
Nandini
