I am writing because I am trying the following and I cannot make it work.
First, I have a Jetson TX2 board, flashed with Jetpack 4.6.2. We want to run a docker container with a software that uses CUDA.
I have everything installed and running on the board, and the docker image I want to build, downloads and compiles the source code. The code I want to compile during the build is Ceres-Solver (2.1.0) with CUDA enabled and a software of my own. As base image I am using nvcr.io/nvidia/l4t-ml:r32.7.1-py3
However, I cannot make it build . The error happens when I build ceres-solver, it finds CUDA as installed in the system, but it cannot find cublas, cusolver or cusparse:
#38 21.81 CMake Error: The following variables are used in this project, but they are set to NOTFOUND. #38 21.81 Please set them or make sure they are set and tested correctly in the CMake files: #38 21.81 CUDA_cublas_LIBRARY (ADVANCED) #38 21.81 linked by target "ceres" in directory /dolomiti/cartographer/scripts/ceres-solver/internal/ceres #38 21.81 CUDA_cusolver_LIBRARY (ADVANCED) #38 21.81 linked by target "ceres" in directory /dolomiti/cartographer/scripts/ceres-solver/internal/ceres #38 21.81 CUDA_cusparse_LIBRARY (ADVANCED) #38 21.81 linked by target "ceres" in directory /dolomiti/cartographer/scripts/ceres-solver/internal/ceres
I found this thread CUDA driver version is insufficient for CUDA runtime version inside docker on Jetson TX2 and tried to run the base image, and compile everything from inside. Everything works wonderfully…
I am running everything on the TX2 if that makes sense.
Does anyone knows how to build the image, so compile the sofware using those libraries during build time, successfully?
Hope someone can give me a hint on how to solve this issue.
Thanks in advance.