When I try to compile ROOT with cuda support for TMVA (Ubuntu 16.04, root 6.10.04, cmake option: “-Dcuda=ON”) I get the following error message:
[ 81%] Building NVCC (Device) object tmva/tmva/CMakeFiles/dnn_cuda.dir/src/DNN/Architectures/Cuda/dnn_cuda_generated_CudaMatrix.cu.o
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/home/andreas/Science/Software/MEGAlib/External/root_v6.10.04/root_v6.10.04-source/tmva/tmva/src/DNN/Architectures/Cuda/CudaMatrix.cu:16:52: fatal error: TMVA/DNN/Architectures/Cuda/CudaMatrix.h: No such file or directory
compilation terminated.
CMake Error at dnn_cuda_generated_CudaMatrix.cu.o.cmake:209 (message):
Error generating
/home/andreas/Science/Software/MEGAlib/External/root_v6.10.04/root_v6.10.04-build/tmva/tmva/CMakeFiles/dnn_cuda.dir/src/DNN/Architectures/Cuda/./dnn_cuda_generated_CudaMatrix.cu.o
There is a file include/TMVA/DNN/Architectures/Cuda/CudaMatrix.h in the build directory.
If I hardcode the path to the header, then I get a bunch of error messages that it cannot find the ROOT header files, such as:
[ 81%] Building NVCC (Device) object tmva/tmva/CMakeFiles/dnn_cuda.dir/src/DNN/Architectures/Cuda/dnn_cuda_generated_CudaMatrix.cu.o
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from /home/andreas/Science/Software/MEGAlib/External/root_v6.10.04/root_v6.10.04-source/tmva/tmva/src/DNN/Architectures/Cuda/CudaMatrix.cu:16:0:
/home/andreas/Science/Software/MEGAlib/External/root_v6.10.04/root_v6.10.04-build/include/TMVA/DNN/Architectures/Cuda/CudaMatrix.h:27:22: fatal error: TMatrixT.h: No such file or directory
compilation terminated.
Is the file TMVA/DNN/Architectures/Cuda/CudaMatrix.h present in your build directory ?
It should be installed under build_dir/include/TMVA…
If this is the case but the file is not found, maybe there is an issue with finding the file with nvcc.
Can you send me the output in this case using the Verbose option ?