NVIDIA NVML驱动程序/库版本不匹配 [英] NVIDIA NVML Driver/library version mismatch

查看:658
本文介绍了NVIDIA NVML驱动程序/库版本不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 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:

此后,我下载了 cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61- 1_amd64.deb 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,但是我g等提到的不匹配错误。

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-通用。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆