gpt4 book ai didi

tensorflow - 如何卸载 NVIDIA 内核模块 'nvidia' 以安装新驱动程序?

转载 作者:行者123 更新时间:2023-12-04 12:59:08 30 4
gpt4 key购买 nike

我需要升级我的 nvidia 驱动程序,以便尝试运行 NVIDIA-LInux-x86_64.run文件

但是,我看到以下消息

ERROR: An NVIDIA kernel module 'nvidia' 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 occured that has corrupted an NVIDIA kernel module's usage count, for which the simplest remedy is to reboot your computer.

我已经卸载了 nvidia-drm当我试图卸载 nvidia
$ sudo modprobe -r nvidia
modprobe: FATAL: Module nvidia is in use.

谁能指导我安装这个新驱动程序没有任何问题?

谢谢

最佳答案

使用lsof /dev/nvidia*查找正在使用旧驱动程序的进程。就我而言,它是“nvidia-persistenced”。只需通过 pid 终止进程并重试安装程序 NVIDIA-***.run

# lsof /dev/nvidia*
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nvidia-pe 1334 nvidia-persistenced 2u CHR 195,255 0t0 420 /dev/nvidiactl
nvidia-pe 1334 nvidia-persistenced 3u CHR 195,0 0t0 421 /dev/nvidia0
nvidia-pe 1334 nvidia-persistenced 5u CHR 195,0 0t0 421 /dev/nvidia0
nvidia-pe 1334 nvidia-persistenced 6u CHR 195,0 0t0 421 /dev/nvidia0
nvidia-pe 1334 nvidia-persistenced 7u CHR 195,0 0t0 421 /dev/nvidia0

关于tensorflow - 如何卸载 NVIDIA 内核模块 'nvidia' 以安装新驱动程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61543214/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com