Update:
gromacs-2021.* cannot be compiled when I do not edit gmxManageNvccConfig.cmake so I started to build Gromacs-2020.6.
Configuration was ran by latest Cmake3.21.1, so should I downgrade it? Which version of CMake should I use?
While the GROMACS build does support CUDA, at the bottom of the version output you can see “CUDA runtime: N/A” which indicates that there is no compatible runtime detected. The reason for this is that your CUDA driver is too old for the the CUDA 11.2 runtime your are using. Upgrade your driver to as sufficiently new one, that should resolve the issues you observe.
Thank you for the suggestion. As you said exactly, the NVIDIA Graphic driver was outdated for 11.2, and upgrading it to the latest version solved the issue.
If you look at the two last lines of the log output you posted, you see the versions of the CUDA driver and the CUDA runtime. These versions must be the same. I would suggest upgrading your CUDA drivers to version 12.30.
Thanks for your reply. Can you please suggest me any proper instruction video/link/article to upgrade my CUDA driver? A few minutes ago I tried to follow this link Updating NVIDIA Driver and CUDA Toolkit — WVU-RC 2023.10.11 documentation but also faced the problem regarding SLURM and so on. Your suggestion would be helpful .