So I am trying to get a root/pyroot/keras gpu setup build on a machine. The machine already had CUDA 11.3 on it, but I needed 11.8 so I upgraded it. Most of the correct stuff seems to be pointing at 11.8 now, but TMVA is still searching for something in 11.3… When rebuilding root I get the following error:
make[2]: *** No rule to make target '/usr/local/cuda-11.3/include/cublas_api.h', needed by 'tmva/tmva/G__TMVA.cxx'. Stop.
make[1]: *** [CMakeFiles/Makefile2:37122: tmva/tmva/CMakeFiles/G__TMVA.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
It shouldn’t be even looking in cuda 11.3 so I’m not sure where this reference comes from? Any advice appreciated, cheers.
Yeah I did a make clean before hand. I think the FindCudaToolkit() might be pointing at the wrong place, is there any way I can view where it’s pointing and change the values?
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.
This is because again, it is pointing to the wrong nvcc…
I can fix that by pointing to the correct one with the flag: CMAKE_CUDA_COMPILER /usr/bin/nvcc
but i now also see: CUDA_SDK_ROOT_DIR CUDA_SDK_ROOT_DIR-NOTFOUND
and CUDNN_ROOT_DIR (empty)
Okay yeah that worked thank you. I ended up pointing CUDA_SDK_ROOT_DIR to the same place as CUDA, and left CUDNN_ROOT_DIR unassigned. Not sure if that’s correct or not.