NVIDIA NVML 驱动程序/库版本不匹配 [英] NVIDIA NVML Driver/library version mismatch
问题描述
当我运行 nvidia-smi
时,我收到以下消息:
When I run nvidia-smi
I get the following message:
Failed to initialize NVML: Driver/library version mismatch
一个小时前,我收到了同样的消息,并卸载了我的 cuda 库,我能够运行 nvidia-smi
,得到以下结果:
An hour ago I received the same message and uninstalled my cuda library and I was able to run nvidia-smi
, getting the following result:
在此之后,我从 NVIDIA 官方页面 然后简单地说:
After this I downloaded cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb
from the official NVIDIA page and then simply:
sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda
export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
现在我已经安装了 cuda,但我得到了提到的不匹配错误.
Now I have cuda installed, but I get the mentioned mismatch error.
一些可能有用的信息:
运行 cat/proc/driver/nvidia/version
我得到:
NVRM version: NVIDIA UNIX x86_64 Kernel Module 378.13 Tue Feb 7 20:10:06 PST 2017
GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
我正在运行 Ubuntu 16.04.2 LTS.
I'm running Ubuntu 16.04.2 LTS.
内核版本是:4.4.0-66-generic.
Kernel release is: 4.4.0-66-generic.
谢谢!
推荐答案
惊喜,重启解决了问题(我以为我已经尝试过了).
Surprise surprise, rebooting solved the issue (I thought I had already tried that).
评论中提到的 Robert Crovella 解决方案可能对其他人也有用,因为它与我第一次解决该问题时所做的非常相似.
The solution Robert Crovella mentioned in the comments may also be useful to someone else, since it's pretty similar to what I did to solve the issue the first time I had it.
这篇关于NVIDIA NVML 驱动程序/库版本不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!