I was running a deep learning program on my jetson orin and I suddenly got this error.
UserWarning: CUDA initialization: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 804: forward compatibility was attempted on non supported HW (Triggered internally at /opt/pytorch/pytorch/c10/cuda/CUDAFunctions.cpp:108.)
Earlier when I just created this conda environment, torch.cuda.is_available() returned true and I could use CUDA & GPU.What should I do? cuda and torch installations have been tested without issues.(Guess it was an accidental upgrade)
jetpack version:5.1-b147 cuda:11.4 cudnn: 8.6.0.166+cuda11.4 torch:2.0.0+nv23.5 torchvision:0.15.2 I downloaded the torch from this website :PyTorch for Jetson. There should be no problem with all this. Because I’ve run the algorithm with this environment before. Then all of a sudden cuda shows this error. I guess it may be caused by an update or upgrade. But I don’t know what to do
I’m sorry, I don’t understand. What version are you talking about? Are you referring to this information? # R35 (release), REVISION: 2.1, GCID: 32413640, BOARD: t186ref, EABI: aarch64, DATE: Tue Jan 24 23:38:33 UTC 2023. My jetpack should be the latest version