install nvhpc_2022_225_Linux_x86_64_cuda_11.7.tar.gz first https://developer.download.nvidia.com/hpc-sdk/22.5/nvhpc_2022_225_Linux_x86_64_cuda_11.7.tar.gz
./configure --with-cuda=/usr/local/cuda --with-cuda-runtime=11.7 --with-cuda-cc=80