我能对 'CUDA driver version is insufficient for CUDA runtime version' 做些什么?

What can I do against 'CUDA driver version is insufficient for CUDA runtime version'?

当我去 /usr/local/cuda/samples/1_Utilities/deviceQuery 并执行

moose@pc09 /usr/local/cuda/samples/1_Utilities/deviceQuery $ sudo make clean
rm -f deviceQuery deviceQuery.o
rm -rf ../../bin/x86_64/linux/release/deviceQuery

moose@pc09 /usr/local/cuda/samples/1_Utilities/deviceQuery $ sudo make
"/usr/local/cuda-7.0"/bin/nvcc -ccbin g++ -I../../common/inc  -m64    -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_52,code=compute_52 -o deviceQuery.o -c deviceQuery.cpp
"/usr/local/cuda-7.0"/bin/nvcc -ccbin g++   -m64      -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_52,code=compute_52 -o deviceQuery deviceQuery.o 
mkdir -p ../../bin/x86_64/linux/release
cp deviceQuery ../../bin/x86_64/linux/release

moose@pc09 /usr/local/cuda/samples/1_Utilities/deviceQuery $ ./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

我不知道如何解决它。

我的系统

moose@pc09 ~ $ cat /etc/issue
Linux Mint 17 Qiana \n \l

moose@pc09 ~ $ uname -a
Linux pc09 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

moose@pc09 ~ $ lspci -v | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GK110B [GeForce GTX Titan Black] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: NVIDIA Corporation Device 1066
    Kernel driver in use: nvidia
01:00.1 Audio device: NVIDIA Corporation GK110 HDMI Audio (rev a1)
    Subsystem: NVIDIA Corporation Device 1066

moose@pc09 ~ $ sudo lshw -c video
  *-display               
       description: VGA compatible controller
       product: GK110B [GeForce GTX Titan Black]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:96 memory:fa000000-faffffff memory:d0000000-d7ffffff memory:d8000000-d9ffffff ioport:e000(size=128) memory:fb000000-fb07ffff



moose@pc09 ~ $ nvidia-settings -q NvidiaDriverVersion

  Attribute 'NvidiaDriverVersion' (pc09:0.0): 331.79

moose@pc09 ~ $ cat /proc/driver/nvidia/version 
NVRM version: NVIDIA UNIX x86_64 Kernel Module  331.79  Sun May 18 03:55:59 PDT 2014
GCC version:  gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) 
moose@pc09 ~ $ lsmod | grep -i nvidia
nvidia_uvm             34855  0 
nvidia              10703828  40 nvidia_uvm
drm                   303102  5 ttm,drm_kms_helper,nvidia,nouveau

moose@pc09 ~ $ 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

moose@pc09 ~ $ nvidia-smi
Thu Nov 12 11:23:24 2015       
+------------------------------------------------------+                       
| NVIDIA-SMI 331.79     Driver Version: 331.79         |                       
|-------------------------------+----------------------+----------------------+
| 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 TIT...  Off  | 0000:01:00.0     N/A |                  N/A |
| 26%   35C  N/A     N/A /  N/A |    132MiB /  6143MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Compute processes:                                               GPU Memory |
|  GPU       PID  Process name                                     Usage      |
|=============================================================================|
|    0            Not Supported                                               |
+-----------------------------------------------------------------------------+

更新您的 NVIDIA 驱动程序。目前您的驱动程序仅支持 CUDA 6 或更低版本,并且您正在尝试使用 CUDA 7.0 工具包。

我 运行 在 ubuntu 1604 上使用工具包 8.0 进入了这个完全相同的错误消息。我尝试重新安装工具包、cudnn 等,但没有帮助。解决方案非常简单:更新到最新的 NVIDIA 驱动程序。我安装了 NVIDIA-Linux-x86_64-367.57.run 并且错误消失了。

我的分,

此错误可能与 selected GPU 模式(Performance/Power 保存模式)有关,当您 select(使用 nvidia-settings utiliy) 集成的 Intel GPU 并执行 deviceQuery 脚本...你得到这个错误:

-> CUDA 驱动程序版本不足以支持 CUDA 运行时版本

但是这个错误具有误导性,通过 select 使用 nvidia-settings 实用程序返回 NVIDIA GPU(性能模式),问题就消失了。

这不是版本问题(在我的场景中)。

此致