I'm having trouble getting Theano to use the GPU on my machine.
When I run: / usr / local / lib / python 2.7 / dist-packages / theano / misc $ THEANO_FLAGS = floatX = float32, device = gpu python check_blas.py WARNING (theano.sandbox.cuda): CUDA is installed, but the gpu device unavailable (error: could not get the number of available gpus: CUDA-enabled device was not found)
I also verified that the NVIDIA driver is installed using: lspci -vnn | grep -i VGA -A 12
with result: Used kernel driver: nvidia
However, when I run: nvidia-smi, the result is: NVIDIA: the device file / dev / nvidiactl could not be opened (there is no such file or directory). NVIDIA-SMI failed because it could not communicate with the NVIDIA driver. Make sure the latest NVIDIA driver is installed and running.
and / dev / nvidiaactl does not exist. What's happening?
UPDATE: / nvidia-smi works with the result:
+------------------------------------------------------+
| NVIDIA-SMI 4.304... Driver Version: 304.116 |
|-------------------------------+----------------------+----------------------+
| GPU Name | Bus-Id Disp. | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GRID K520 | 0000:00:03.0 N/A | N/A |
| N/A 39C N/A N/A / N/A | 0% 10MB / 4095MB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+
and after compiling NVIDIA_CUDA-6.0_Samples and then running deviceQuery, I get the result:
cudaGetDeviceCount returned 35 -> The CUDA driver version is insufficient for the CUDA execution version Result = FAIL
source
share