当前位置:网站首页>NVIDIA graphics card failed to initialize nvml driver/library version mismatch error solution
NVIDIA graphics card failed to initialize nvml driver/library version mismatch error solution
2022-07-02 18:08:00 【u013250861】
Error recorded in this document Failed to initialize NVML: Driver/library version mismatch Error resolution .
Problem recurrence
$ nvidia-smi
-->
Failed to initialize NVML: Driver/library version mismatch
Problem analysis
- NVIDIA The kernel driver version is inconsistent with the system driver
Check the kernel version used by the graphics card driver
cat /proc/driver/nvidia/version
-->
NVRM version: NVIDIA UNIX x86_64 Kernel Module 430.34 Wed Jun 26 12:19:48 CDT 2019
GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)
- Kernel version Kernel Module by 430.34, system kernel 16.04.12
Check the system driver log
cat /var/log/dpkg.log | grep nvidia
-->
2021-03-30 14:04:55 install libnvidia-compute-460-server:amd64 <none> 460.32.03-0ubuntu0.18.04.2
2021-03-30 14:04:55 status half-installed libnvidia-compute-460-server:amd64 460.32.03-0ubuntu0.18.04.2
2021-03-30 14:04:57 status unpacked libnvidia-compute-460-server:amd64 460.32.03-0ubuntu0.18.04.2
2021-03-30 14:04:57 status unpacked libnvidia-compute-460-server:amd64 460.32.03-0ubuntu0.18.04.2
2021-03-30 14:05:15 install nvidia-cuda-dev:amd64 <none> 9.1.85-3ubuntu1
2021-03-30 14:05:15 status half-installed nvidia-cuda-dev:amd64 9.1.85-3ubuntu1
2021-03-30 14:05:34 status unpacked nvidia-cuda-dev:amd64 9.1.85-3ubuntu1
2021-03-30 14:05:34 status unpacked nvidia-cuda-dev:amd64 9.1.85-3ubuntu1
2021-03-30 14:05:34 install nvidia-cuda-doc:all <none> 9.1.85-3ubuntu1
2021-03-30 14:05:34 status half-installed nvidia-cuda-doc:all 9.1.85-3ubuntu1
2021-03-30 14:05:38 status unpacked nvidia-cuda-doc:all 9.1.85-3ubuntu1
2021-03-30 14:05:38 status unpacked nvidia-cuda-doc:all 9.1.85-3ubuntu1
2021-03-30 14:05:38 install nvidia-cuda-gdb:amd64 <none> 9.1.85-3ubuntu1
2021-03-30 14:05:38 status half-installed nvidia-cuda-gdb:amd64 9.1.85-3ubuntu1
2021-03-30 14:05:39 status unpacked nvidia-cuda-gdb:amd64 9.1.85-3ubuntu1
2021-03-30 14:05:39 status unpacked nvidia-cuda-gdb:amd64 9.1.85-3ubuntu1
2021-03-30 14:05:39 install nvidia-profiler:amd64 <none> 9.1.85-3ubuntu1
2021-03-30 14:05:39 status half-installed nvidia-profiler:amd64 9.1.85-3ubuntu1
You can see that the system kernel has been installed 18.04 Of 460.32 The driver
View driver
sudo dpkg --list | grep nvidia-*
-->
ii libnvidia-compute-460-server:amd64 460.32.03-0ubuntu0.18.04.2 amd64 NVIDIA libcompute package
ii libnvidia-container-tools 1.0.5-1 amd64 NVIDIA container runtime library (command-line tools)
ii libnvidia-container1:amd64 1.0.5-1 amd64 NVIDIA container runtime library
ii nvidia-container-runtime 3.1.4-1 amd64 NVIDIA container runtime
ii nvidia-container-toolkit 1.0.5-1 amd64 NVIDIA container runtime hook
ii nvidia-cuda-dev 9.1.85-3ubuntu1 amd64 NVIDIA CUDA development files
ii nvidia-cuda-doc 9.1.85-3ubuntu1 all NVIDIA CUDA and OpenCL documentation
- You can see that the system is installed ubuntu kernel 18.04 Under the nvidia 460 drive
- The inconsistency between the actual system kernel version and the driver requirement version is the root cause of the problem
Solution
- Unload an existing drive , reinstall
Unload the drive
sudo /usr/bin/nvidia-uninstall
sudo apt-get --purge remove nvidia-*
sudo apt-get purge nvidia*
sudo apt-get purge libnvidia*
Until the command does not output anything
sudo dpkg --list | grep nvidia-*
reinstall
sudo chmod a+x NVIDIA-Linux-x86_64-450.80.02.run
sudo ./NVIDIA-Linux-x86_64-450.80.02.run -no-x-check -no-nouveau-check -no-opengl-files
–no-opengl-files Only install driver files , Not to install OpenGL file
–no-x-check Do not check when installing the drive X service
–no-nouveau-check Do not check when installing the drive nouveau
View drive update results
$ nvidia-smi
Reference material
https://blog.csdn.net/qq_40200387/article/details/90341107
https://www.zywvvd.com/2020/12/03/linux/driver/nvidia-driver-install-linux/
边栏推荐
- Design of the multi live architecture in different places of the king glory mall
- PHP gets the number of days, hours, minutes and seconds between the two timestamps
- Modbus protocol communication exception
- 应广单片机开发 工规 PMC131 带AD芯片检测电池电压单片机SOP8/14
- How to download wechat payment certificate (API certificate)
- 读写 XML/JSON/INI 和 UBJSON 等格式的数据文件的统一接口
- 1288_ Implementation analysis of vtask resume() interface and interrupt Security version interface in FreeRTOS
- Nvidia 显卡 Failed to initialize NVML Driver/library version mismatch 错误解决方案
- 微信小程序视频分享平台系统毕业设计毕设(7)中期检查报告
- Use Zadig to build a continuous delivery platform from 0 to 1
猜你喜欢
WPS inserts a picture and displays it completely
Modbus protocol communication exception
Does pytorch support 32 bits?
515. Find the maximum value in each tree row
求求你们,别再刷 Star 了!这跟“爱国”没关系!
微信核酸检测预约小程序系统毕业设计毕设(1)开发概要
微信小程序视频分享平台系统毕业设计毕设(6)开题答辩PPT
微信核酸检测预约小程序系统毕业设计毕设(3)后台功能
Edgenext hit a mixed punch: a lightweight architecture integrating CNN and transformer
Microsoft LDAP 配置页中输入有效的用户名及密码,microsoft ldap 配置页中输入有效的用户名
随机推荐
Nvidia 显卡 Failed to initialize NVML Driver/library version mismatch 错误解决方案
Many scenic spots are temporarily closed due to the typhoon. The provincial culture and tourism department reminds you to pay attention to safety!
Turn off the xshell connection server and the running jar package will stop automatically
MySQL installation and configuration
微信小程序视频分享平台系统毕业设计毕设(7)中期检查报告
Huimang micro IO MCU ft60f011a-rb
Design of the multi live architecture in different places of the king glory mall
Edgenext hit a mixed punch: a lightweight architecture integrating CNN and transformer
C# 检测图片是否被旋转并修改到正真的旋转
Wasserstein Slim GAIN with Clipping Penalty(WSGAIN-CP)介绍及代码实现——基于生成对抗网络的缺失数据填补
Simple understanding of cardinality sorting
能解决 80% 故障的排查思路
A4988与42步进电机
Laravel框架安装时遇到的坑
Pms150c Yingguang MCU development case
Larvel document reading notes custom authentication login and registration using larvel 8
Development and application case of pms134 scheme of Yingguang single chip microcomputer with original packaging
Aloam code reading and summary
vi/vim 删除:一行, 一个字符, 单词, 每行第一个字符 命令
Tips for self defined packaging of Yingguang SCM 003 burner