/usr/local/cuda/samples/1_Utilities/deviceQuery$
使用命令运行 CUDA 示例时sudo ./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
使用lspci -v | grep -i
命令后我得到:
NVIDIA Corporation GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M] (rev a1)
该lshw -c video
命令给出:
PCI (sysfs)
*-display
description: VGA compatible controller
product: Haswell-ULT Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 0b
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:63 memory:b5000000-b53fffff memory:c0000000-cfffffff ioport:6000(size=64)
*-display
description: 3D controller
product: GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:09:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=nouveau latency=0
resources: irq:62 memory:b3000000-b3ffffff memory:a0000000-afffffff memory:b0000000-b1ffffff ioport:3000(size=128)
那么可能是因为使用的是 i915 驱动程序而不是 nvidia 驱动程序,所以 CUDA 无法正常工作?如果是这样,我该如何让它正常工作?
我遵循的安装 nvidia 驱动程序的最新指南确实搞乱了我的系统,需要重新安装,请推荐一个适用于 Ubuntu 14.04 的指南。