解决nvidia驱动和CUDA升级问题

解决nvidia驱动和CUDA升级问题

注释:升级高版本的nvidia驱动和cuda是不影响现有的docker镜像和容器的。因为是向下兼容的。仅仅升级后重启服务器即可。

ERROR: An NVIDIA kernel module ‘nvidia-drm’ appears to already be loaded in your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading, and you still receive this message, then an error may have occurred that has corrupted an NVIDIA kernel modules usage count, for which the simplest remedy is to reboot your computer.

问题分析

应该是你的桌面显示器在使用显卡驱动 关闭即可。就可以升级显卡驱动和CUDA啦。

关闭步骤

···
$ sudo su # 使用root用户
$ systemctl isolate multi-user.target
$ modprobe -r nvidia-drm # unload 显卡驱动
$ sudo sh ./NVIDIA-Linux-x86_64-390.48.run # 执行升级脚本
···

在这里插入图片描述

相关推荐

  1. NVIDIA 驱动 CUDA 版本信息速查

    2024-06-12 00:12:03       57 阅读
  2. Ubuntu20.04安装CUDANvidia 4090显卡驱动

    2024-06-12 00:12:03       73 阅读
  3. Ubuntu22.04安装Nvidia 550驱动CUDA toolkit 12.4.1

    2024-06-12 00:12:03       36 阅读
  4. debian&ubuntu的nvidia驱动升级

    2024-06-12 00:12:03       52 阅读
  5. 英伟达(NVIDIACUDA

    2024-06-12 00:12:03       53 阅读
  6. linux的CUDA、torch驱动GPU驱动的对应问题

    2024-06-12 00:12:03       24 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-12 00:12:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-12 00:12:03       102 阅读
  3. 在Django里面运行非项目文件

    2024-06-12 00:12:03       83 阅读
  4. Python语言-面向对象

    2024-06-12 00:12:03       92 阅读

热门阅读

  1. 问题 B: 2.左右(lr.cpp/pas)

    2024-06-12 00:12:03       42 阅读
  2. Vue小细节

    2024-06-12 00:12:03       41 阅读
  3. VPN简介

    2024-06-12 00:12:03       35 阅读
  4. C语言与内存息息相关的重要概念有哪些?

    2024-06-12 00:12:03       31 阅读
  5. 超宽输送带的最适合的应用领域是什么

    2024-06-12 00:12:03       28 阅读
  6. 电影《禁闭岛》赏析

    2024-06-12 00:12:03       48 阅读
  7. 【LC刷题】DAY03:242 349 202 1

    2024-06-12 00:12:03       35 阅读