I have been facing this problem for two days since i am leaning pytorch by the Official Pytorch Tutorial. I am stopped at
y = torch.ones_like(x, device=device)
when python3.6 reported this cuda error.
I searched the internet and got no anwser.
That’s disappointing …
I am on CentOS 7 with a GT650M gpu and CUDA 10.1
nvidia-smi information:

Screen Shot 2019-09-10 at 8.26.59 PM.png1126×584 45.1 KB

SO, H!E!L!P! M!E!