# Gromacs GPU installation problem

**URL:** https://gromacs.bioexcel.eu/t/gromacs-gpu-installation-problem/219
**Category:** User discussions
**Created:** [May 31, 2020, 2:13pm UTC](https://gromacs.bioexcel.eu/t/gromacs-gpu-installation-problem/219 "2020-05-31T14:13:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sainitin](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@sainitin](https://gromacs.bioexcel.eu/u/sainitin)
#### Post date: [May 31, 2020, 2:13pm UTC](https://gromacs.bioexcel.eu/t/gromacs-gpu-installation-problem/219/1 "2020-05-31T14:13:29Z")

</div>

GROMACS version:  
GROMACS modification: Yes/No  
Hi,

I installed CUDA 10.1 drivers in GPU enabled machine and tried to install gromacs 2018.1 in GPU compitable using following command.

cmake … -DGMX\_GPU=ON -DCMAKE\_CXX\_COMPILER=g+±7 -DCMAKE\_C\_COMPILER=gcc-7 -DCUDA\_TOOLKIT\_ROOT\_DIR=/usr/local/cuda-10.1

But it gives following error. I tried gcc-7 and gcc-9 Installation was not successful in both cases.

– Check for working NVCC/C compiler combination  
– Check for working NVCC/C compiler combination - broken  
CMake Error at cmake/gmxManageGPU.cmake:289 (message):  
NVCC/C compiler combination does not seem to be supported. CUDA frequently  
does not support the latest versions of the host compiler, so you might  
want to try an earlier C/C++ compiler version and make sure your CUDA  
compiler and driver are as recent as possible.  
Call Stack (most recent call first):  
CMakeLists.txt:582 (gmx\_gpu\_setup)

– Configuring incomplete, errors occurred!  
See also “/root/gromacs-2018.1/build/CMakeFiles/CMakeOutput.log”.  
See also “/root/gromacs-2018.1/build/CMakeFiles/CMakeError.log”.  
You have changed variables that require your cache to be deleted.  
Configure will be re-run and you may have to reset some variables.  
The following variables have changed:  
CMAKE\_C\_COMPILER= gcc-7  
CMAKE\_CXX\_COMPILER= g+±7

– Generating done  
– Build files have been written to: /root/gromacs-2018.1/build

Can any body help

Thanks,  
sainitin
