Hi, I am a beginner with Jetson devices. I know this is an older device, but I am using a Jetson Nano 4GB and trying to set up a container based on l4t-tensorflow.
I want to use TensorFlow and TensorRT inside the container, but when I try to import tensorflow, I get the following error:
libcudart.so.10.2: cannot open shared object file: No such file or directory
Could you please tell me how to properly load libcudart.so.10.2 inside the Docker container?
Environment:
JetPack 4.6.1 (L4T R32.7.1)
Docker Image: l4t-tensorflow:r32.7.1-tf2.7-py3
Device: Jetson Nano 4GB
Command: sudo docker run -it --rm --runtime=nvidia --gpus all my-tf-container:0.1
What I Have Tried:
The host system has the correct libcudart.so.10.2. But it is not mounted on container(in spite of that, libcudart_static.a is mounted successfully)
I set the library path (LD_LIBRARY_PATH), but it is still not recognized.
I copied the libcudart.so.10.2 file from the host to the container, but it is still not recognized.
It should mount into the container when running with nvidia runtime.
Does the sudo docker run -it --rm --runtime=nvidia --gpus all my-tf-container:0.1 the command you use?
Could you try it with the following command:
$ sudo docker run -it --rm --runtime nvidia --network nvcr.io/nvidia/l4t-tensorflow:r32.7.1-tf2.7-py3
I solved this problem.
After checking my environment, I found that I was actually using JetPack 4.6.6 (L4T R32.7.6), which was incompatible with the l4t-tensorflow version.
So, I installed JetPack 4.6 (L4T R32.6.1) on another SD card, used l4t-tensorflow:r32.6.1, and it worked.