PyTorch Compatibility Issues on Jetson Orin
Possible Issue 1: GPU Not Available
Install the Jetson-specific build of PyTorch.
Tutorial: https://docs.nvidia.com/deeplearning/frameworks/install-pytorch-jetson-platform/index.html
Choose your own version: https://developer.download.nvidia.com/compute/redist/jp/
The version used here:
torch-2.5.0a0+872d972e41.nv24.08.17622132-cp310-cp310-linux_aarch64.whl
After downloading, run:
Plain
export TORCH_INSTALL=torch-2.5.0a0+872d972e41.nv24.08.17622132-cp310-cp310-linux_aarch64.whl
pip install --no-cache $TORCH_INSTALLTest:
Python
import torchPython
torch.cuda.is_available()Possible Issue 2: Missing cuSPARSELt Library
Error: ImportError: libcusparseLt.so.0: cannot open shared object file: No such file or directory
Solution:
Install the cuSPARSELt library that matches the CUDA version supported by the Jetson Orin platform.
Download links:
https://developer.nvidia.com/cusparselt-downloads
Possible Issue 3: torchvision Not Installed
Solution:
Install the matching torchvision version manually. torch 2.5 → torchvision 0.20.0
Python
git clone --branch v0.20.0 https://github.com/pytorch/vision.gitAfter downloading, build:
Plain
export BUILD_VERSION=0.20.0
python3 setup.py install --user
