CUDA compiler unknown version 12.2
- The CUDA compiler identification is unknown
-- Check for working CUDA compiler: /usr/bin/nvcc
-- Check for working CUDA compiler: /usr/bin/nvcc -- broken
CMake Error at /usr/share/cmake-3.16/Modules/CMakeTestCUDACompiler.cmake:46 (message):
The CUDA compiler
"/usr/bin/nvcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/tanmayd26/catkin_ws/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_70b5c/fast && /usr/bin/make -f CMakeFiles/cmTC_70b5c.dir/build.make CMakeFiles/cmTC_70b5c.dir/build
make[1]: Entering directory '/home/tanmayd26/catkin_ws/build/CMakeFiles/CMakeTmp'
Building CUDA object CMakeFiles/cmTC_70b5c.dir/main.cu.o
/usr/bin/nvcc -x cu -c /home/tanmayd26/catkin_ws/build/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_70b5c.dir/main.cu.o
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_70b5c.dir/build.make:66: CMakeFiles/cmTC_70b5c.dir/main.cu.o] Error 1
make[1]: Leaving directory '/home/tanmayd26/catkin_ws/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_70b5c/fast] Error 2
Edited by Brad King