You are not logged in.
I met a strange phenomenon:
After I leave my laptop for a long time, I come back, wake up my laptop from suspended status, cuda will not work.
```python
import torch
torch.cuda.is_available()
/home/wzy/.pyenv/versions/3.9.13/lib/python3.9/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:115.)
return torch._C._cuda_getDeviceCount() > 0
Out[2]: False
```
When I reboot my laptop, the strange phenomenon will disappear.
Anyone know the possible reason? Thanks!
After update, this phenomenon disappears.
Last edited by Freed (2022-11-14 07:21:55)
An adherent of hacker culture and open source.
Offline
i have the same issue , how do you solve this?
Offline