As mentioned in the following post, sudo rm -r ~/.nv works for this problem. Not sure why it happens though.

  
    
    
    Cublas runtime error : library not initialized at /data/users/soumith/builder/wheel/pytorch-src/torch/lib/THC/THCGeneral.c:383 
  
  
    @Rohith_AP, @ShawnGuo 
“sudo rm -r ~/.nv” works for my 4-GPU machine to remove error below 
RuntimeError: cublas runtime error : library not initialized at /py/conda-bld/pytorch_1493681908901/work/torch/lib/THC/THCGeneral.c:394 
FYI, it also solves error below 
File “/opt/anaconda/lib/python3.6/site-packages/torch/nn/functional.py”, line 40, in conv2d 
return f(input, weight, bias) 
RuntimeError: CUDNN_STATUS_INTERNAL_ERROR 
Thanks!