I am trying to install gromacs 2021.5 using GPU CUDA version 12. However, I am getting the following error:
nvcc fatal : Unsupported gpu architecture ‘compute_35’
CMake Error at libgromacs_generated_gpuhaloexchange_impl.cu.o.Release.cmake:220 (message):
Error generating
/home/sdsos/gromacs-2021.5/build/src/gromacs/CMakeFiles/libgromacs.dir/domdec/./libgromacs_generated_gpuhaloexchange_impl.cu.o
I have tried all possible solutions but still getting the same error. Please suggest.
GROMACS 2021 requests compilation for CUDA compute capabilities 3.5 and later (as configured in gmxManageNvccConfig.cmake), but CUDA 12 does not support 3.5 any more. To solve that issue, you could use an earlier CUDA version if you have (CUDA 11.0 would do the trick, e.g.) or you could also directly specify the compute cabability of your GPU via the CMake variables -DGMX_CUDA_TARGET_COMPUTE and -DGMX_CUDA_TARGET_SM. What GPU model are you compiling for?
In addition to Carsten’s great answer, another option is to use GROMACS 2022 or newer, which has “smarter” detection of compiler flags and should handle the lack of CC 3.5 support in CUDA 12 gracefully.
hey, I install gromocs through follwong command but GPU not supporting
Fatal error:
Cannot run short-ranged nonbonded interactions on a GPU because no GPU is
detected.
tar xfz gromacs-2021.4.tar.gz
cd gromacs-2021.4
mkdir build
cd build
cmake … -DGMX_CUDA_TARGET_SM=86 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda -DGMX_GPU=ON
make
make check
sudo make install
source /usr/local/gromacs/bin/GMXRC
gmx mdrun -deffnm md_0_10 -nb gpu
MY system configration is
processor Intel® Core™ i5-10400F × 12
memory 16GM
Graphics NVIDIA Corporation GK208B [GeForce GT 710]
disk capicity 2TB
hey, I install gromocs through follwong command but GPU not supporting
Fatal error:
Cannot run short-ranged nonbonded interactions on a GPU because no GPU is
detected.
tar xfz gromacs-2021.4.tar.gz
cd gromacs-2021.4
mkdir build
cd build
cmake … -DGMX_CUDA_TARGET_SM=86 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda -DGMX_GPU=ON
make
make check
sudo make install
source /usr/local/gromacs/bin/GMXRC
gmx mdrun -deffnm md_0_10 -nb gpu
MY system configration is
processor Intel® Core™ i5-10400F × 12
memory 16GM
Graphics NVIDIA Corporation GK208B [GeForce GT 710]
disk capicity 2TB
You are compiling with -DGMX_CUDA_TARGET_SM=86, but your device is 3.5. Please, use the correct flags when building GROMACS (or omit DGMX_CUDA_TARGET_SM altogether) and the compatible CUDA version (11.x, not 12.x).