My GPU is a GTX 950.
I installed CUDA 8.0 from .deb (not runfile) using the instructions at Installation Guide Linux :: CUDA Toolkit Documentation. When I try to run the deviceQuery sample, this is what I get:
$ ./deviceQuery./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL
These are the results of lspci:
$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 950] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 0fba (rev a1)
I’ve updated the PATH variable in my ~/.bashrc to include the CUDA bin directory, and nvcc seems to be found with no issue:
$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
This is the output of nvidia-smi:
$ nvidia-smi
Sun Aug 20 10:57:41 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.66 Driver Version: 375.66 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 950 Off | 0000:01:00.0 On | N/A |
| 0% 37C P5 11W / 110W | 373MiB / 1996MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 946 G /usr/lib/xorg/Xorg 228MiB |
| 0 1879 G compiz 90MiB |
| 0 2431 G /usr/lib/firefox/firefox 1MiB |
| 0 26095 G ...s-passed-by-fd --v8-snapshot-passed-by-fd 51MiB |
+-----------------------------------------------------------------------------+
And this is the NVIDIA driver info in /proc/driver/nvidia/version:
$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 375.66 Mon May 1 15:29:16 PDT 2017
GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
I think I installed the GPU driver 375.66 using apt-get. Didn’t download the .deb. Could this be related to the problem?
Thanks for any help.