/home/kash/pytorch/lib/python3.8/site-packages/torch/cuda/init.py:52: UserWarning: CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero. (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.) return torch._C._cuda_getDeviceCount() > 0
why is this error showing
when i installed first time there is no error it show cuda (torch.cuda.is_available())
now showing this error
Driver Version: 450.80.02
CUDA Version: 11.0
Your system might be in a bad state and PyTorch is unable to detect the GPUs.
Did you upgrade any drivers or installed a CUDA toolkit without rebooting?
Are you able to run any other CUDA applications?
no bro i cant access my gpu on another app(blender) also…what should i do…
i installed using terminal sudo apt install -y nvidia-driver nvidia-cuda-toolkit
please tell me how to install
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1003 G /usr/lib/xorg/Xorg 4MiB |
±----------------------------------------------------------------------------+
Getting similar error… Please let me know how to resolve this. Output of collect_env.py is as follows.
Collecting environment information…
/home/XXXXX/.local/lib/python3.7/site-packages/torch/cuda/init.py:52: UserWarning: CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero. (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
return torch._C._cuda_getDeviceCount() > 0
PyTorch version: 1.7.1
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A
OS: Ubuntu 16.04.7 LTS (x86_64)
GCC version: (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
Clang version: Could not collect
CMake version: version 3.18.1
Python version: 3.7 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: 10.1.105
GPU models and configuration:
GPU 0: GeForce RTX 2080 Ti
GPU 1: GeForce RTX 2080 Ti
GPU 2: GeForce RTX 2080 Ti
GPU 3: GeForce RTX 2080 Ti
Nvidia driver version: 460.39
cuDNN version: Probably one of the following:
/opt/arrayfire/lib64/libcudnn.so.7.6.5
/usr/lib/x86_64-linux-gnu/libcudnn.so.6.0.21
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
/usr/local/cuda-10.0/lib64/libcudnn.so.7
HIP runtime version: N/A
MIOpen runtime version: N/A
This error might be raised e.g. if you’ve upgraded your driver(s) without a restart.
I’m also a bit confused about the output mentioning that CUDA10.2 was used to build PyTorch, but the runtime version points to 10.1, so there might also be a CUDA mismatch on your machine?