对于CUDA运行时版本而言,我可以对CUDA驱动程序版本做什么不足?

时间:2015-11-12 10:26:42

标签: cuda ubuntu-14.04 nvidia linuxmint

当我转到/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设备查询(运行时API)版本(CUDART静态链接)

     

cudaGetDeviceCount返回35    - > CUDA驱动程序版本不足以用于CUDA运行时版本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                                               |
+-----------------------------------------------------------------------------+

4 个答案:

答案 0 :(得分:6)

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

答案 1 :(得分:3)

我在ubuntu 1604上遇到了与toolkit 8.0完全相同的错误消息。我尝试重新安装工具包,cudnn等等,它没有帮助。解决方案变得非常简单:更新到最新的NVIDIA驱动程序。我安装了NVIDIA-Linux-x86_64-367.57.run,错误就消失了。

答案 2 :(得分:0)

文档:

如果您的nvidia版本看起来合适(请参阅:nvcc -V),请在进入任何杂乱之前尝试使用以下内容:

sudo ldconfig

答案 3 :(得分:0)

我的分,

当您选择(使用nvidia-settings utiliy)集成的Intel GPU并执行deviceQuery脚本时,此错误可能与所选GPU模式(性能/省电模式)有关。你得到这个错误:

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

但是这个错误会产生误导,通过使用nvidia-settings实用程序选择返回NVIDIA GPU(性能模式),问题就会消失。

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

此致