I have some difficulties running a Cuda application inside a docker container on my Jetson TX2. The error message is CUDA Error: CUDA driver version is insufficient for CUDA runtime version The Cuda version is 10.2 but I have no idea where I can find the driver version.
I think there is something simple I don’t understand but I can’t figure out what… ! I am a total beginner on Jetson on Cuda so I must be missing something.
If you cd to “/usr/local”, and run “ls -d cuda*”, then one of them will show a version. That is your current version.
The CUDA version has a strong dependency to the installed L4T which is currently flashed. If you need a different version, then you need to flash. However, keep in mind that nvcc can compile for different compute architectures, e.g., “-gencode arch=” can support different GPUs. Make sure it is really the CUDA version you need to change, and not just a recompile for that GPU.
When you drill down to any particular release in that list it will mention which CUDA version it supports. If you simply recompiling for your GPU is not sufficient, then you will need to flash with the JetPack/SDKM release having the proper CUDA version.
Thank you for your answer
I checked my Jetson l4t and cuda versions and they are older than my docker’s one. I am going to downgrade my docker l4t version and see if I still have the same error
Someone using docker would have to answer this, but do beware that any docker running on a Jetson has to specifically be customized with that in mind. The normal publicly available releases of docker container content for a PC would not be able to work with a Jetson. I think NVIDIA has releases specific to the Jetson, but since I have never used it, I have no way of giving advice on that.
Do you fix this issue yet?
Usually, insufficient error comes from the different version between GPU driver and CUDA library.
Please noticed that you need to use the container that built with the same L4T version as your device.
For example,
If you use JetPack4.4 product release, which is rel32-4.3, please use the image that built on r32.4.3.
I didn’t fix this issue, I checked the version installed on my jetson which is r32.3.1 and I used the same version in my docker image. But I still get the same error. I must have a version problem somewhere.
For now I don’t use docker on my Jetson. If I have some time I will try to make it work and write a feedback here.
I fixed this issue some time ago, so I share it because maybe documentation is not very clear about docker on Jetson.
If CUDA is used inside docker then the docker image must not contain a CUDA installation. Jetpack comes with a custom docker version which handles CUDA, so docker will use the system’s CUDA installation.