blcuicall / BLCU-HPC

高性能GPU计算集群
6 stars 0 forks source link

Unable to determine the device handle for GPU0000:40:00.0: Unknown Error #27

Open Iwantgoggghome opened 2 months ago

Iwantgoggghome commented 2 months ago

找不到GPU了

Iwantgoggghome commented 2 months ago
          total        used        free      shared  buff/cache   available

Mem: 503Gi 2.0Gi 489Gi 2.0Mi 12Gi 498Gi Swap: 15Gi 0.0Ki 15Gi Unable to determine the device handle for GPU0000:40:00.0: Unknown Error

File "/home/slzb88578/.conda/envs/myenv/lib/python3.8/site-packages/torch/serialization.py", line 152, in _cuda_deserialize device = validate_cuda_device(location) File "/home/slzb88578/.conda/envs/myenv/lib/python3.8/site-packages/torch/serialization.py", line 136, in validate_cuda_device raise RuntimeError('Attempting to deserialize object on a CUDA ' RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

代码运行后,提示错误如上,CPU可用,找不到GPU了