当前位置:网站首页>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/
边栏推荐
- 切换变换的时候记得使用三元表达式
- Typescript
- 515. Find the maximum value in each tree row
- 好评率计算
- pycharm 修改 pep8 E501 line too long > 0 characters
- Huimang micro IO MCU ft60f010a-urt
- Solution pour arrêter automatiquement les paquets Jar en cours d'exécution en éteignant le serveur de connexion xshell
- 辉芒微IO单片机FT60F11F-MRB
- 基数排序的简单理解
- [today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now
猜你喜欢

Two pieces of nature a day! Duan Fengfeng, an alumnus of the University of science and technology of China, was the third Chinese winner of the belby medal

MySQL installation and configuration

MySQL --- 數據庫的基本操作

515. Find the maximum value in each tree row

515. 在每个树行中找最大值

Redisson 高性能 Redis 分布式锁源码分析

Modbus protocol communication exception

微信小程序视频分享平台系统毕业设计毕设(5)任务书

ORA-19838 -- 恢复控制文件到备库

好玩的免费GM游戏整理汇总
随机推荐
1288_FreeRTOS中vTaskResume()接口以及中断安全版本接口实现分析
Finally detailed explanation
Troubleshooting ideas that can solve 80% of faults
php获取两个时间戳之间相隔多少天多少小时多少分多少秒
应广单片机003烧录器自定义封装使用技巧
【Golang | gRPC】使用openssl生成证书
567.字符串中的排列
Experience Alibaba cloud character recognition OCR
Solution pour arrêter automatiquement les paquets Jar en cours d'exécution en éteignant le serveur de connexion xshell
Yingguang pmc131 SOP16 16pin eight bit MCU
把xshell連接服務器關掉,運行的jar包就自動停止的解决方案
微信小程序视频分享平台系统毕业设计毕设(8)毕业设计论文模板
Viewing technological changes through Huawei Corps (VI): smart highway
毕业总结
Mb10m-asemi rectifier bridge mb10m
如何开启IDEA的Run Dashboard功能
Simple understanding of cardinality sorting
Huimang micro IO MCU ft60f010a-urt
[golang | grpc] use grpc to realize simple remote call
MySQL -- basic concept of database