CUDA 无法检测到显卡

CUDA 无法检测到显卡

我遇到了一个问题,我收到一条错误消息

    Exception during execution: CUDA error: no CUDA-capable device is detected (src/cuda/lm/Cuda.cu:60)

有关显卡的一些信息:

    $ lspci -nnk | grep "VGA\|'Kern'\|3D\|Display" -A2 
    02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104 [GeForce GTX 680] [10de:1180] (rev a1)
    Subsystem: ZOTAC International (MCO) Ltd. Device [19da:1255]
    Kernel driver in use: nvidia

    $ xrandr --prop 
    Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
    DVI-I-0 disconnected (normal left inverted right x axis y axis)
    BorderDimensions: 
    Border: CARDINAL(6) (format 16 items 4) ????
    SignalFormat:   VGA
    supported: VGA         
    ConnectorType:  DVI-I
    ConnectorNumber: 0 (0x00000000)
_   ConnectorLocation: 0 (0x00000000)
    DVI-I-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
EDID:
    00ffffffffffff000469942401010101
    0716010380351e78ea9265a655559f28
    0d5054bfef00714f818081409500a940
    b300d1c00101023a801871382d40582c
    4500132b2100001e000000fd00324c1e
    5311000a202020202020000000fc0056
    453234380a20202020202020000000ff
    0043324c4d51533037363031330a00d2
BorderDimensions: 
Border: CARDINAL(6) (format 16 items 4) ????
SignalFormat:   TMDS
    supported: TMDS        
ConnectorType:  DVI-I
ConnectorNumber: 0 (0x00000000)
_ConnectorLocation: 0 (0x00000000)
       1920x1080      60.0*+
       1680x1050      60.0  
       1600x1200      60.0  
       1440x900       59.9  
       1280x1024      75.0     60.0  
       1280x960       60.0  
       1152x864       75.0  
       1024x768       75.0     70.1     60.0  
       800x600        75.0     72.2     60.3     56.2  
       640x480        75.0     72.8     59.9  
    HDMI-0 disconnected (normal left inverted right x axis y axis)
       BorderDimensions: 
       Border: CARDINAL(6) (format 16 items 4) ????
       SignalFormat:    TMDS
            supported: TMDS        
       ConnectorType:   HDMI
       ConnectorNumber: 2 (0x00000002)
        _ConnectorLocation: 2 (0x00000002)
    DP-0 disconnected (normal left inverted right x axis y axis)
         BorderDimensions: 
         Border: CARDINAL(6) (format 16 items 4) ????
        SignalFormat:   TMDS
             supported: TMDS        
          ConnectorType:    DisplayPort
        ConnectorNumber: 3 (0x00000003)
        _ConnectorLocation: 3 (0x00000003)
    DVI-D-0 disconnected (normal left inverted right x axis y axis)
        BorderDimensions: 
        Border: CARDINAL(6) (format 16 items 4) ????
        SignalFormat:   TMDS
            supported: TMDS        
        ConnectorType:  DVI-D
        ConnectorNumber: 1 (0x00000001)
        _ConnectorLocation: 1 (0x00000001)
       DP-1 disconnected (normal left inverted right x axis y axis)
           BorderDimensions: 
        Border: CARDINAL(6) (format 16 items 4) ????
         SignalFormat:  DisplayPort
             supported: DisplayPort 
         ConnectorType: DisplayPort
        ConnectorNumber: 3 (0x00000003)
        _ConnectorLocation: 3 (0x00000003)

可以在以下位置找到 nvidia 错误报告:保管箱谁能告诉我如何解决这个问题?

亲切的问候,

大卫

答案1

如果您使用的是 Ubuntu 14.04,则可以直接从 Ubuntu 软件中心安装 nvidia-331、NVIDIA CUDA 工具包和 NVIDIA CUDA 5.5 运行时库。libcudart5.5 是 NVIDIA CUDA 运行时库的软件包名称。libcudart5.5 需要 nvidia-331 或更新的图形驱动程序。默认的 Ubuntu 14.04 存储库中还有一个 NVIDIA CUDA 工具包软件包 (nvidia-cuda-toolkit),与 libcudart5.5 一样,它也是 5.5 版本。

上面提到的三个软件包在我的 Ubuntu 14.04 上运行,配有 NVIDIA GeForce GT 610 显卡。您也可以安装 nvidia-331-updates 软件包,而不是 nvidia-331。

相关内容