Hi all,
My hardware is Jetson Orin NX, and I have installed JetPack 6.0 DP. I created a virtual environment using Python 3.8.17 and used the command conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia to install PyTorch version 2.1.2.
In the Python interpreter, when using torch.__version__ , it returns ‘2.1.2’. However, when using torch.cuda.is_available() , it returns false. How can I make torch.cuda.is_available() return true?
and use command $ sudo pip3 install torchvision-0.17.0.dev20231211-cp310-cp310-linux_aarch64.whl
but return error message :
ERROR: Could not find a version that satisfies the requirement torch==2.3.0.dev20231211 (from torchvision) (from versions: 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2)
ERROR: No matching distribution found for torch==2.3.0.dev20231211
and i try torchvision-0.17.0.dev20231010-cp310-cp310-linux_aarch64.whl
return ERROR: No matching distribution found for torch==2.2.0.dev20231010
@cho56915 these wheels from PyTorch.org website were not built with CUDA enabled, they are for general ARM64 platform without GPU. Instead, please build torchvision from source following the torchvision instructions under the Installation section of this topic:
Or you can use this container which already has it:
That has PyTorch/torchvision/torchaudio/ect already installed, and the compiled wheels are saved under /opt inside the container if you want to copy them out.