CUDA Not Available on Jetson Orin Nano Despite Installation

Hi everyone,

I’ve recently purchased an NVIDIA Jetson Orin Nano Developer Kit and flashed it with an SD card image (JetPack 6.0). I’ve also added an SSD for extra storage, and everything seemed to go smoothly. However, I encountered an issue when trying to use the GPU for my YOLO project to achieve real-time, high FPS object detection.

Here’s the problem:

CUDA Version: According to nvcc --version, I have CUDA 12.2.140 installed (see attached image).

Jtop Output: When I run jtop, it shows that CUDA 12.2.140 and other libraries like cuDNN and TensorRT are installed, but OpenCV is showing “with CUDA: NO”.

PyTorch: When I try to use CUDA through PyTorch, torch.cuda.is_available() returns False. I also get an error message: “Torch not compiled with CUDA enabled” (see attached images).

TorchVision: The version of TorchVision installed is 0.19.1 (see attached screenshot).

I’ve verified that JetPack 6.0 is installed, and the CUDA toolkit is recognized, but I can’t seem to get CUDA to work with PyTorch. The GPU functionality is crucial for running YOLO with acceptable performance, and without CUDA, I’m unable to use the GPU.

Steps I’ve Taken:

Installed JetPack 6.0 via SD card flash.
Verified CUDA with nvcc --version.
Tried using PyTorch, but it says CUDA is not available.
System Info:

Jetson Orin Nano Developer Kit
JetPack Version: 6.0
CUDA: 12.2.140
Python Version: 3.10.12
PyTorch Version: 2.4.1
TorchVision Version: 0.19.1
Attached are the screenshots from jtop, the PyTorch output, TorchVision version, and CUDA verification (nvcc output).

Any help or guidance to get CUDA running properly on this setup would be greatly appreciated. I need the GPU for high FPS on my YOLO project.

Thanks in advance!

Hi,

The default OpenCV within JetPack doesn’t build with CUDA support.
Please install it from the source with the script below instead.

You can also find PyTorch and TorchVision with CUDA support in the below link:

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.