# Compilation with NVHPC

**URL:** https://gromacs.bioexcel.eu/t/compilation-with-nvhpc/1776
**Category:** User discussions
**Tags:** mdrun, installation-error
**Created:** [March 18, 2021, 4:49pm UTC](https://gromacs.bioexcel.eu/t/compilation-with-nvhpc/1776 "2021-03-18T16:49:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![newmdfan](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/newmdfan/32/718_2.png) [@newmdfan](https://gromacs.bioexcel.eu/u/newmdfan)
#### Post date: [March 18, 2021, 4:49pm UTC](https://gromacs.bioexcel.eu/t/compilation-with-nvhpc/1776/1 "2021-03-18T16:49:17Z")

</div>

GROMACS version: 2019.3  
GROMACS modification: No

I am trying to install GROMACS 2019.3 with CUDA 11 provided in the NVHPC package. However I cannot manage to get it properly compiled due to the following error:

```
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
 Please set them or make sure they are set and tested correctly in the CMake files:
 CUDA_cufft_LIBRARY (ADVANCED)
     linked by target "libgromacs" in directory /hnfs/GROMACS/gromacs-2019.3/src/gromacs
 Generating done

```

I had also manually forced CMake to use libcufftw.so and libcufftw\_static.a but yet it cannot find it!!
