带有 cuda 的 nvidia 驱动程序 - 错误:未找到与 NVidia 兼容的平台

带有 cuda 的 nvidia 驱动程序 - 错误:未找到与 NVidia 兼容的平台

我有 Geforce GTX460。当我想启动 CUDA 时,我收到以下错误:错误:未找到与 NVidia 兼容的平台。我已经使用包管理器上的每个驱动程序对其进行了测试。结果总是相同的。

因此,我从 nvidia 页面下载了最新的驱动程序并手动安装。重启后,我只看到黑屏,光标闪烁。因此,我删除了新添加的驱动程序并安装了“apt-get install nvidia-current”。

所以我陷入了同样的问题。

一些故障排除:

 lspci -v | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GF104 [GeForce GTX 460] (rev a1) (prog-if 00 [VGA controller])
    Kernel driver in use: nvidia
01:00.1 Audio device: NVIDIA Corporation GF104 High Definition Audio Controller (rev a1)

nvidia-settings -q NvidiaDriverVersion

ERROR: Error querying target relations


  Attribute 'NvidiaDriverVersion' (silb-PC:0.0): 331.113
  Attribute 'NvidiaDriverVersion' (silb-PC:0[gpu:0]): 331.113

cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module  331.113  Mon Dec  1 21:08:13 PST 2014
GCC version:  gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 

 dpkg -l | grep nvidia
rc  nvidia-304                                                  304.125-0ubuntu1~xedgers14.04.1                        amd64        NVIDIA legacy binary driver - version 304.125
rc  nvidia-331                                                  331.113-0ubuntu0.0.4                                   amd64        NVIDIA binary driver - version 331.113
rc  nvidia-331-updates                                          331.113-0ubuntu0.0.4                                   amd64        NVIDIA binary driver - version 331.113
ii  nvidia-340                                                  340.76-0ubuntu1~xedgers14.04.1                         amd64        NVIDIA binary driver - version 340.76
ii  nvidia-340-dev                                              340.76-0ubuntu1~xedgers14.04.1                         amd64        NVIDIA binary Xorg driver development files
ii  nvidia-340-uvm                                              340.76-0ubuntu1~xedgers14.04.1                         amd64        NVIDIA Unified Memory kernel module
rc  nvidia-cuda-toolkit                                         5.5.22-3ubuntu1                                        amd64        NVIDIA CUDA toolkit
rc  nvidia-libopencl1-304                                       304.125-0ubuntu1~xedgers14.04.1                        amd64        NVIDIA OpenCL Driver and ICD Loader library
rc  nvidia-libopencl1-331                                       331.113-0ubuntu1~xedgers14.04.1                        amd64        NVIDIA OpenCL Driver and ICD Loader library
ii  nvidia-libopencl1-340                                       340.76-0ubuntu1~xedgers14.04.1                         amd64        NVIDIA OpenCL Driver and ICD Loader library
ii  nvidia-modprobe                                             340.29-0ubuntu1                                        amd64        Load the NVIDIA kernel driver and create device files
rc  nvidia-opencl-icd-304                                       304.125-0ubuntu1~xedgers14.04.1                        amd64        NVIDIA OpenCL ICD
rc  nvidia-opencl-icd-331                                       331.113-0ubuntu0.0.4                                   amd64        NVIDIA OpenCL ICD
ii  nvidia-opencl-icd-340                                       340.76-0ubuntu1~xedgers14.04.1                         amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                                0.6.2                                                  amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                                             346.47-0ubuntu1~xedgers14.04.1                         amd64        Tool for configuring the NVIDIA graphics driver

我应该安装哪个驱动程序才能在我的计算机上运行 cuda?我知道我的显卡支持 CUDA,因为我一两个月前在 Windows 上运行过它 :)

相关内容