gpt4 book ai didi

Ubuntu 16.04、CUDA 8 - CUDA 驱动程序版本不足以支持 CUDA 运行时版本

转载 作者:太空宇宙 更新时间:2023-11-03 16:41:27 28 4
gpt4 key购买 nike

我已经手动安装了最新的 nvidia 驱动程序 (375.26),并使用 cuda_8.0.44_linux.run 安装了 CUDA(跳过那里的驱动程序安装,因为捆绑的驱动程序较旧,我认为是 367)。

但是,在 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 显示驱动程序,但在我的情况下,这已经完成了。有人有什么想法吗?谢谢。

最佳答案

运行

sudo apt-get purge nvidia-*

并使用

重新安装驱动程序

sudo apt-get install nvidia-375

解决了。仅作记录,我第一次使用 GUI 更新驱动程序(软件和更新中的其他驱动程序选项卡)。

关于Ubuntu 16.04、CUDA 8 - CUDA 驱动程序版本不足以支持 CUDA 运行时版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41409842/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com