You are not logged in.

#1 2022-08-11 20:39:16

Freed
Member
From: China
Registered: 2020-02-01
Posts: 56
Website

[Sovled] When the laptop automatically suspend and wake up cuda go bad

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

#2 2024-04-03 04:13:35

arch_holahola
Member
Registered: 2022-12-03
Posts: 2

Re: [Sovled] When the laptop automatically suspend and wake up cuda go bad

i have the same issue , how do you solve this?

Offline

Board footer

Powered by FluxBB