我手動安裝了最新的nvidia驅動程序(375.26),並使用cuda_8.0.44_linux.run安裝了CUDA(跳過驅動程序安裝,因爲捆綁的司機年齡較大,我認爲是367)。Ubuntu 16.04,CUDA 8 - CUDA驅動程序版本不足以支持CUDA運行時版本
CUDA樣本中運行DEVICEQUERY產生以下錯誤但是:
~/cudasamples/NVIDIA_CUDA-8.0_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
版本信息:
$ NVCC --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Sun_Sep__4_22:14:01_CDT_2016
Cuda compilation tools, release 8.0, V8.0.44
$ nvidia-smi
Sat Dec 31 17:25:03 2016
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.26 Driver Version: 375.26 |
|-------------------------------+----------------------+----------------------+
| 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 1080 Off | 0000:01:00.0 On | N/A |
| 0% 39C P8 11W/230W | 464MiB/8110MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 974 G /usr/lib/xorg/Xorg 193MiB |
| 0 1816 G compiz 172MiB |
| 0 2178 G ...ignDownloads/Enabled/MaterialDesignUserMa 96MiB |
+-----------------------------------------------------------------------------+
$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 375.26 Thu Dec 8 18:36:43 PST 2016
GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
的前面回答類似的問題已更新NVIDIA顯示驅動程序,但在我的情況下,這已經完成。有沒有人有任何想法?謝謝。
您可能有一些舊的驅動程序組件來自以前的安裝。您可能還沒有正確刪除'nouveau'驅動程序。我相信還有其他的可能性。 [cuda 8 linux安裝指南](http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#abstract)涵蓋了所有必要的信息,以使CUDA能夠在OS。 –
這不是一個編程問題,並且最好在[SO] – talonmies