I’m trying to compile gromacs on a Xeon E-2174G with a nvidia Quadro P2000 an fresh almalinux9.4 installation, but I’m getting stuck on a cuda issue after running cmake like this:
cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESScmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON -DGMX_GPU=CUDA
IONTEST_DOWNLOAD=ON -DGMX_GPU=CUDA
[...]
-- The CUDA compiler identification is unknown
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCUDACompiler.cmake:603 (message):
Failed to detect a default CUDA architecture.
Compiler output:
Call Stack (most recent call first):
cmake/gmxManageCuda.cmake:116 (enable_language)
CMakeLists.txt:697 (include)
some output that may be relevant
[...]
-- Found CUDA: /usr/local/cuda (found suitable version "12.5", minimum required is "11.0")
-- Adding work-around for issue compiling CUDA code with glibc 2.23 string.h
-- Check for working NVCC/C++ compiler combination with nvcc '/usr/local/cuda/bin/nvcc'
-- Check for working NVCC/C++ compiler combination - works
[...[
using cuda-11.8 doesn’t seem to make a difference.
By this command :
sudo cmake … -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON -DGMX_GPU=CUDA -D CMAKE_CUDA_ARCHITECTURES=native
I got the following error:
– The CUDA compiler identification is unknown
CMake Error at cmake/gmxManageCuda.cmake:116 (enable_language):
No CMAKE_CUDA_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable “CUDACXX” or the CMake cache entry CMAKE_CUDA_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:697 (include)
I have tried to enable gpu by the use of -D CMAKE_CUDA_ARCHITECTURES=native but in reply " cmake … -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON -DGMX_GPU=CUDA -D CMAKE_CUDA_ARCHITECTURES=native
CMake Error: The source directory “/home/sanghamitra-dey/Downloads/gromacs-2024.4/build/…” does not exist.
Specify --help for usage, or press the help button on the CMake GUI." I got this. So can you please help me out? Please.