CUDA driver initialization failed - Technical Help - DeepTalk - Deep Learning Community

CUDA driver initialization failed

post by agg on Nov 3, 2022

agg

Nov 2022

Hi! When I try to run any sort of Pytorch code (e.g. torch.cuda.is_available()), I get the following error:

/usr/lib/python3/dist-packages/torch/cuda/__init__.py:83: UserWarning: CUDA initialization: CUDA driver initialization failed, you might not have a CUDA gpu. (Triggered internally at  ../c10/cuda/CUDAFunctions.cpp:109.)
  return torch._C._cuda_getDeviceCount() > 0

Is there anything I can do about this? nvidia-smi says I have “NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7”.

2.0k views

Related topics

Topic Replies Views Activity
CUDA error after sudo apt-get update. UserWarning: CUDA initialization: CUDA unknown error….return torch._C._cuda_getDeviceCount() > 0 1 2.7k May 2021
CUDA pytorch not working on a fresh install RTX 3070 1 1.8k Mar 2021
CUDA runtime implicit initialization on GPU:0 0 1.0k Dec 2020
Fresh Install Cuda Issues Ubuntu 22.04 4 234 Jul 2024
CUDA drivers not working on fresh 1xH100 instance 8 1.6k Aug 2023