I have somehow different cuda versions:
CUDA Driver Version / Runtime Version 11.4 / 11.8
And when following the installation in PyTorch for Jetson, I have received the following error:
Failed to load the custom YOLOv5 model. Error: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=11.4 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install.
Please share me some insights how to resolve this issue. Thanks a lot!!
Thanks for replying, will using jp5/cu114 will still enable the GPU? Because I took it last time and it does not support GPU usage.
How can I update to 11.8? Will it then update the pip install torch torchvision --no-cache https://nvidia.box.com/shared/static/ssf2v7pf5i245fk4i0q926hy4imzs2ph.whl to 11.8 as well?
Yes, the packages from jp5/cu114 have enabled the CUDA support.
You will need to build PyTorch and TorchVision from the source if CUDA 11.8 is preferred.
you are talking something else. jp5/cu114 index → does not have CUDA support.
PyTorch for Jetson → does have CUDA support, but it has different CUDA Versions (see my post title).
What I want to have is the source code of pytorch in this tutorial PyTorch for Jetson (not the torchvision) and the way I can build it in my Jetson. Thanks.
$ python3
Python 3.8.10 (default, Jan 17 2025, 14:40:23)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'2.2.0'
>>> torch.cuda.is_available()
True