Platform: Xavier NX with JetPack 4.4 [L4T 32.4.2] installed
I pulled latest (5.1) Docker image from here:
Inside container (which I run by official instruction in the link above, using --runtime=nvidia
), I get the following output from python3 commands:
torch.__version__
outputs
2.0.0a0+ec3941ad.nv23.02
torch.cuda.is_available()
outputs
/usr/local/lib/python3.8/dist-packages/torch/cuda/__init__.py:98: UserWarning: CUDA initialization: CUDA driver initialization failed, you might not have a CUDA gpu. (Triggered internally at /home/riship/old_pyt/pytorch/c10/cuda/CUDAFunctions.cpp:109.)
return torch._C._cuda_getDeviceCount() > 0
False
Meanwhile, CUDA seems to be installed, as ls /usr/local
outputs
bin cuda cuda-10.2 cuda-11 cuda-11.4 etc games include lib man sbin share src
Why PyTorch can’t see CUDA? Can I fix that somehow?