cudagpunvidia

nvidia-smi Failed to initialize NVML: GPU access blocked by the operating system


when asking for

nvidia-smi

it gives this error:

Failed to initialize NVML: GPU access blocked by the operating system

other information:

$ nvcc --verion

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Mon_Feb_16_22:59:02_CST_2015
Cuda compilation tools, release 7.0, V7.0.27

and also:

 $ lspci | grep -i nvidia

 01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 425M] (rev a1)
 01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)

Having searched a lot in the internet I couldn't find a way to solve this problem. when I use ipython notebook and want to run Caffe framework it gives this error:

Check failed: error == cudaSuccess (38 vs. 0)  no CUDA-capable device is detected

Solution

  • I noticed that after CUDA installation restarting Ubuntu works, and now I see the GPU details output by nvidia-smi