Hello.
I need to install pytorch 2.6 and torchvision 0.21 on my Jetson AGX Xavier.
The latest Jetpack is 5.15 with Cuda 11.4.
I tried to build pytorch but the build failed because cuda 11.4 do not support bfloat16 and the mininal version of cuda should be 11.8.
I found that I can install cuda 11.8 on Xavier (CUDA Toolkit 11.8 Downloads | NVIDIA Developer)
by run the next commands:
and can install cudnn. The last version of cudnn 9.8.0 does not support cuda 11 for jetson platform:
So what version of cudnn I should choose?
Another option is to install cuda 12.2:
But when I try to install cudnn it installs cudnn for last cuda (12.8) Is there workaround to fix this?
One more thing I found that there is prebuild version of pytorch 2.2 for cuda 12.2 from jetpack 6.0 (PyTorch for Jetson)
Will it work if I succesfully install cuda 12.2 with cudnn?
You can find the latest Pytorch version we provided for JetPack 5 below. It is v2.2:
For other versions, you will need to build it on your own.
On JetPack 5, only CUDA is upgradable and the latest version is 12.2 as you mentioned.
There are no cuDNN and TensorRT packages for aarch64-jetson in Ubuntu 20.04 available.
Thanks for your fast reply.
so if I need pytorch 2.6 I’ll need to build it from source. As I mentioned I can not build it with Cuda 11.4 because of errors
You mean that for cuda 12.2 there is no cuDNN and TensorRT?
I’ve checked cuDNN. and for jetson there is 9.8.0:
Can I use it for cuda 12.2?
Another question:
Can I build and install new versions of Ubuntu like 22.04 or 24.04 for Jetson AGX Xavier
On JetPack 5, there is no ugpradable cuDNN and TensorRT.
Which means the available cuDNN and TensorRT comes from JetPack and built with the default CUDA 11.4.
The link you shared is a known issue and didn’t work:
We don’t test PyTorch 2.6 with CUDA 12.2 before.
But you can give it a try to see if it works.
Unfortunately, to use different Ubuntu versions on Xavier is not officially supported.
Thanks.