Cublas runtime error : library not initialized at /data/users/soumith/builder/wheel/pytorch-src/torch/lib/THC/THCGeneral.c:383

@Brando_Miranda I also face the problem when update pytorch to 0.4.0, how to solve it ? what do mean by
export CUDA_VISIBLE_DEVICES=$i? add it to bashrc?and what does $i means ?

$i is the way to get the value of the bash env variable i. I set its value somewhere else before or have a for loop. CUDA_VISIBLE_DEVICES is a bash env variable that controls what cuda/gpu stuff is visible.