Cuda runtime error (38)

    RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at /opt/conda/conda-bld/pytorch_1501969512886/work/pytorch-0.1.12/torch/lib/THC/THCGeneral.c:66

Is this error caused by incorrect CUDA driver installed?

Interesting… I found the error is that I assigned a wrong GPU to it. The machine only has one GPU and I set CUDA_VISIBLE_DEVICES=1, thus the error. Now it’s fixed.

1 Like