I am having trouble to make the following config work:
Host: A jetson AGX jetson developer kit
The host is trying to act as a cuda application docker builder. Meaning it will compile some cuda codes in container/Dockerfile.
The Dockerfile is way too long to share. However, the idea will be something like this
o FROM nvcr.io/nvidia/l4t-base:r32.3.1
o Install some dependencies, including cmake
o Compile our cuda application by using cmake …
This config will fail when I am detecting cuda inside cmake when running command
with the error
“CMake Error at /usr/local/share/cmake-3.19/Modules/CMakeDetermineCUDACompiler.cmake:191 (message):
Couldn’t find CUDA library root.”
I inspect the base image and I see nvcc can be found inside docker image and can be run as well. I also specify cuda root manually when running cmake at the /usr/local/cuda and didnt help either. tried with and without
FindPackage(CUDA) isnide cmakelist and the same problem
I wonder have you had similar experience or know some ideas what is happening?