charm icon indicating copy to clipboard operation
charm copied to clipboard

GPU build failing on delta

Open adityapb opened this issue 2 years ago • 1 comments

Building with MPI and CUDA on Delta fails with the build script because of an error in cmake tests. The buildold script runs fine.

adityapb avatar Oct 30 '23 20:10 adityapb

-- Found CUDAToolkit: /sw/spack/delta-2022-03/apps/cuda/11.6.1-gcc-11.2.0-vglutoe/include (found version "11.6.112") -- The CUDA compiler identification is GNU 11.2.0 -- Detecting CUDA compiler ABI info -- Detecting CUDA compiler ABI info - failed -- Check for working CUDA compiler: /sw/spack/delta-2022-03/apps/cuda/11.6.1-gcc-11.2.0-vglutoe/bin/nvcc -- Check for working CUDA compiler: /sw/spack/delta-2022-03/apps/cuda/11.6.1-gcc-11.2.0-vglutoe/bin/nvcc - broken CMake Error at /usr/share/cmake/Modules/CMakeTestCUDACompiler.cmake:52 (message): The CUDA compiler

"/sw/spack/delta-2022-03/apps/cuda/11.6.1-gcc-11.2.0-vglutoe/bin/nvcc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /u/bohm/charm/mpi-linux-x86_64-smp-cuda/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_b65d6/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_b65d6.dir/build.make CMakeFiles/cmTC_b65d6.dir/build
gmake[1]: Entering directory '/u/bohm/charm/mpi-linux-x86_64-smp-cuda/CMakeFiles/CMakeTmp'
Building CUDA object CMakeFiles/cmTC_b65d6.dir/main.cu.o
/sw/spack/delta-2022-03/apps/cuda/11.6.1-gcc-11.2.0-vglutoe/bin/nvcc      -c /u/bohm/charm/mpi-linux-x86_64-smp-cuda/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_b65d6.dir/main.cu.o
Linking CUDA executable cmTC_b65d6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b65d6.dir/link.txt --verbose=1
"" CMakeFiles/cmTC_b65d6.dir/main.cu.o -o cmTC_b65d6 
Error running link command: No such file or directory
gmake[1]: *** [CMakeFiles/cmTC_b65d6.dir/build.make:99: cmTC_b65d6] Error 2
gmake[1]: Leaving directory '/u/bohm/charm/mpi-linux-x86_64-smp-cuda/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_b65d6/fast] Error 2

CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:699 (enable_language)

-- Configuring incomplete, errors occurred!

ericjbohm avatar Oct 30 '23 21:10 ericjbohm