首页 > 其他分享 >nvidia-smi指令报错:Failed to initialize NVML: Driver/library version mismatch NVML library version: 535.

nvidia-smi指令报错:Failed to initialize NVML: Driver/library version mismatch NVML library version: 535.

时间:2023-10-05 22:35:42浏览次数:35  
标签:NVML utils apt version library install nvidia 0ubuntu0.20

nvidia-smi指令报错:Failed to initialize NVML: Driver/library version mismatch
NVML library version: 535.113

我是刚开始没有nvidia-smi命令,输入后,提示我安装。

apt install nvidia-340               # version 340.108-0ubuntu5.20.04.2, or
apt install nvidia-utils-390         # version 390.157-0ubuntu0.20.04.1
apt install nvidia-utils-450-server  # version 450.248.02-0ubuntu0.20.04.1
apt install nvidia-utils-470         # version 470.199.02-0ubuntu0.20.04.1
apt install nvidia-utils-470-server  # version 470.199.02-0ubuntu0.20.04.1
apt install nvidia-utils-525         # version 525.125.06-0ubuntu0.20.04.3
apt install nvidia-utils-525-server  # version 525.125.06-0ubuntu0.20.04.2
apt install nvidia-utils-535         # version 535.86.05-0ubuntu0.20.04.2
apt install nvidia-utils-535-server  # version 535.54.03-0ubuntu0.20.04.1
apt install nvidia-utils-435         # version 435.21-0ubuntu7
apt install nvidia-utils-440         # version 440.82+really.440.64-0ubuntu6
apt install nvidia-utils-418-server  # version 418.226.00-0ubuntu0.20.04.2

我就安装了这个apt install nvidia-utils-535  ,出现版本不一致

NVIDIA 内核驱动版本与系统驱动不一致,

输入命令

 cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module  470.199.02  Thu May 11 11:46:56 UTC 2023
GCC version:  

我这个是470的版本。

apt install nvidia-utils-470

安装之后再输入nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.199.02   Driver Version: 470.199.02   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   49C    P8    N/A /  N/A |      0MiB /  1878MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

我的CUDA是11.4

标签:NVML,utils,apt,version,library,install,nvidia,0ubuntu0.20
From: https://www.cnblogs.com/q1359720840/p/17744037.html

相关文章

  • C++ namespace User_Unauthorized version 1.0.0 is officially released
    CodenamespaceUser_Unauthorized{/***@briefThisisaheaderfileforcompetitiveprogramming.*@authorUser-Unauthorized*@version1.0.0*@date2023-10-5*/typedeflonglongvalueType;typedefstd::vector<......
  • [ARC154E] Reverse and Inversion
    2023-09-09题目[ARC154E]ReverseandInversion难度&重要性(1~10):9.5题目来源luogu题目算法数学解题思路Update:2023.8.28修改一处笔误这是一道很妙的计数题,考试的时候没想到。这道题我们首先会想到去化简一下式子\(\sum\limits_{i<j,p_i>p_j}(j-i)\),这很明显是要......
  • [Signal] 1 - Basic version of signal
    ImplementtwofunctionsofSignalscreateSignal:returnatuplewithreadfunctionandwrtiefunctioncreateEffect:acceptafunctionwhichwillbeexecutedwhensignalvaluechanged Codetotest:import{createSignal}from"./reactivy";......
  • C error:deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    问题描述解决C++中[Warning]deprecatedconversionfromstringconstantto'char*'[-Wwrite-strings]char*string="aaabbbcc";//warning的原因是字符串常量存放在const内存区...原因主程序初始化字符串,是字符串常量,该字符串的内存分配在全局的const内存区。......
  • Android获取VersionName
    使用privateStringversionName=BuildConfig.VERSION_NAME;//在需要的地方使用versionNamepublicStringgetVersionName(){returnversionName;}获取到的值一直是个固定值,https://cloud.tencent.com/developer/ask/sof/555589我们有一个releas......
  • 如何使用 TypeScript 的 module augmentation 技术增强 Spartacus Feature Library
    moduleaugmentation技术是一种强大的TypeScript功能,它允许开发人员在不修改原始代码的情况下扩展现有模块的功能。这种技术在Angular生态系统中的应用尤为广泛,特别是在构建功能库和插件时,以确保代码的可维护性和可扩展性。概述Moduleaugmentation允许我们向现有模块添加......
  • mysql在安装group_replication插件时,报错ERROR 1126"can't open share library xxxx g
    问题描述:mysql在安装group_replication插件时,报错ERROR1126"can'topensharelibraryxxxxgroup_replication.so",如下所示:数据库:MySQL8.0.27系统:rhel7.31、问题重现mysql>INSTALLPLUGINgroup_replicationSONAME'group_replication.so';ERROR1126(HY0......
  • Go每日一库之166:go-version(语义化版本)
    今天给大家推荐的是一个版本比较工具。该工具基于语义化标准的版本号进行比较、约束以及校验。以下是go-version的基本情况:安装通过goget进行安装:gogetgithub.com/hashicorp/go-version解析和比较版本号v1,err:=version.NewVersion("1.2")给版本号增加约束并校验v1......
  • mlpack is an intuitive, fast, and flexible header-only C++ machine learning libr
    https://github.com/mlpack/mlpack README.md afast,header-onlymachinelearninglibraryHome | Documentation | Community | Help | IRCChat   Download: currentstableversion(4.2.1)mlpack isanintuitive,fast,andflexibleheader-......
  • Go - Using Multiple Versions of the Same Dependent Packages
    Problem: Youwanttousemultipleversionsofthesamedependentpackagesinyourcode.Solution: Usethereplacedirectiveinthego.modfiletorenameyourpackage.Thoughitmightseemlikeaverynicherequirement,thereissometimesaneedtobeabl......