I encounter the same  “CUDA initialization warning” on a ubuntu server. After I set the variable CUDA_VISIBLE_DEVICES, the warning is gone.
In addition, if I do not set the variable, my CUDA program does not run on GPU as well.