Incompatibilité PyTorch sur Jetson Orin
Problème possible 1 : GPU inutilisable
Installer la version Jetson de PyTorch Tutoriel : https://docs.nvidia.com/deeplearning/frameworks/install-pytorch-jetson-platform/index.html
Version au choix : https://developer.download.nvidia.com/compute/redist/jp/
Version utilisée : torch-2.5.0a0+872d972e41.nv24.08.17622132-cp310-cp310-linux_aarch64.whl
Après téléchargement, exécuter :
export TORCH_INSTALL=torch-2.5.0a0+872d972e41.nv24.08.17622132-cp310-cp310-linux_aarch64.whl
pip install --no-cache $TORCH_INSTALLTest :
import torch
torch.cuda.is_available()Problème possible 2 :
ImportError: libcusparseLt.so.0: cannot open shared object file: No such file or directory
Solution :
Installer la bibliothèque cuSPARSELt correspondant à la version CUDA supportée par la plateforme Jetson Orin.
Lien de téléchargement :
https://developer.nvidia.com/cusparselt-downloads
Problème possible 3 :
torchvision n'est pas disponible
Solution :
Installer manuellement la version de torchvision correspondante. torch 2.5 → torchvision 0.20.0
git clone --branch v0.20.0 https://github.com/pytorch/vision.gitCompiler après téléchargement :
export BUILD_VERSION=0.20.0
python3 setup.py install --userLien de référence : https://zhuanlan.zhihu.com/p/1933164131969659101

