Problem with CUDA driver and runtime versions

Hello,

I used CUDA for a while without any problems, but after some problems of version that appeared a few days ago, I have decided to re-install cuda toolkit 7.0.

So I tried to remove all traces of old driver and toolkit versions, and I re-installed it.

The problem is that I cannot run the toolkit samples, nor any other cuda program :

$ ./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

However, the driver version is the one installed with the toolkit (352.68) :

$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module  352.68  Tue Dec  1 17:24:11 PST 2015
GCC version:  gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)
$ nvidia-settings -q NvidiaDriverVersion
  Attribute 'NvidiaDriverVersion' (vincent-SATELLITE-P850:0.0): 352.68
  Attribute 'NvidiaDriverVersion' (vincent-SATELLITE-P850:0[gpu:0]): 352.68
$ nvidia-smi
Tue Jan 12 12:23:08 2016       
+------------------------------------------------------+                       
| NVIDIA-SMI 352.68     Driver Version: 352.68         |                       
|-------------------------------+----------------------+----------------------+
| 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 GT 630M     Off  | 0000:01:00.0     N/A |                  N/A |
| N/A   62C    P0    N/A /  N/A |    185MiB /  2047MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0                  Not Supported                                         |
+-----------------------------------------------------------------------------+
$ dpkg -l  | grep nvidia
ii  nvidia-352                                            352.68-0ubuntu1                                     amd64        NVIDIA binary driver - version 352.68
ii  nvidia-352-dev                                        352.68-0ubuntu1                                     amd64        NVIDIA binary Xorg driver development files
ii  nvidia-352-uvm                                        352.68-0ubuntu1                                     amd64        Transitional package for nvidia-352
ii  nvidia-modprobe                                       352.68-0ubuntu1                                     amd64        Load the NVIDIA kernel driver and create device files
ii  nvidia-opencl-icd-352                                 352.68-0ubuntu1                                     amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                          0.6.2                                               amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                                       352.68-0ubuntu1                                     amd64        Tool for configuring the NVIDIA graphics driver

(and the CUDA version : )

$ nvcc -V
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

My hardware :

$ lspci -v | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 630M] (rev a1) (prog-if 00 [VGA controller])
	Kernel driver in use: nvidia

Can somebody help me?

Thanks in advance!

You don’t indicate how you removed “all traces” nor how you installed the new toolkit. My guess is your driver install is corrupted somehow.

I would suggest starting with a clean reload of the operating system, followed by an install that adheres to the methods given in the installation guide for linux.