My guess is that you haven’t followed the post-install steps properly that the HPC SDK requires you to do. Specifically, to set up the HPC SDK after install properly you are prompted to do something like this (example for 21.9, not 21.7):
It’s evident that configure depends on that PATH, so it is important. In addition, when I tried this, I had trouble during configure using the CUDA install from the 21.9 HPC SDK. I suspect that the QE configure process is not really up-to-date with the latest HPC SDK method of installing the (former PGI) compilers.
Here is the recipe I used:
Install the CUDA 11.4 toolkit in the usual location (/usr/local/cuda-11.4/ with symlink). This is also provides the GPU driver install anyway.
Install the 21.9 HPC SDK that bundles CUDA 11.4 only. I used the tarfile/install method. Note the path setup above.
Adjust your path to point to the nvcc compiler here:
Unfortunately, make pw still returns the same error. I tried with different versions of QE (latest- 6.8, 6.7, gpu-develop), but all of them are giving the same error.
I’m afraid I couldn’t install the CUDA toolkit with symlink properly (from step 1; I installed the toolkit without symlink). Could you please explain how to install HPC_SDK with symlink?
Thank you for your response. I am a total newbie to this field, so please bear with me.
I meant to say that I installed HPC_SDK according to the steps mentioned at https://developer.nvidia.com/nvidia-hpc-sdk-downloads and as you suggested in points 1, 2 and 3, and added all the paths to my .bashrc file.
I simply ran nvhpc_2021_219_Linux_x86_64_cuda_11.4/install to install it. How can I install it with symlink?
To install the CUDA toolkit, see here. Read and follow carefully the instructions in the linux install guide.
The GPU driver installation is one part of CUDA install that can be troublesome. If you already have a GPU driver installed, its probably best to use that, if it is of a proper version, rather than trying to install a new one. One easy way to do this is to use the runfile CUDA toolkit installation method, and deselect the GPU driver install, when the runfile installer gives you the menu choice. To find out if you have a GPU driver installed (and its version) you can run nvidia-smi.
I mention this for at least 2 reasons. 1. I am not a QE expert. 2. There is almost certainly more than one way to get things going here. Talking about it with experienced users may be more productive.