Cuda runtime error (30)

File “/home/ka/.local/lib/python3.6/site-packages/torch/cuda/init.py”, line 179, in _lazy_init
torch._C._cuda_init()
RuntimeError: cuda runtime error (30) : unknown error at /pytorch/aten/src/THC/THCGeneral.cpp:50

pytorch 1.2.0
cuda 9.2
python 3.6

Thanks in advance

Could you answer these questions to make debugging a bit easier:

  • Which GPU and NVIDIA driver are you using?
  • Was PyTorch working before?
  • What does nvidia-smi output?

GeForce GTX 1080

Yes earlier it used to work.

NVIDIA-SMI 396.54
Driver Version: 396.54