解决 NVIDIA 显卡驱动问题
你的系统检测到了 NVIDIA 显卡,但它目前没有被声明,也就是说可能没有正确安装驱动程序。你需要安装 NVIDIA 驱动程序来激活这块显卡。以下是安装步骤:
步骤 1:添加 NVIDIA 驱动 PPA
首先,确保你的系统软件包是最新的:
sudo apt update sudo apt upgrade
ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(250, 250, 250); font-variant-ligatures: no-common-ligatures;">sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update
步骤 2:安装 NVIDIA 驱动程序
查找并安装推荐的驱动程序:
ubuntu-drivers devices
步骤 3:重启系统
安装完成后,重启系统以使驱动生效
sudo reboot
步骤 4:验证驱动安装
重启后,使用 nvidia-smi 命令检查 NVIDIA 驱动是否正确安装并生效:
(base) jiahong@GPUsvr01:~$ nvidia-smi Fri Jul 26 14:02:18 2024 +---------------------------------------------------------------------------------------+ | NVIDIA-SMI 535.183.01 Driver Version: 535.183.01 CUDA Version: 12.2 | |-----------------------------------------+----------------------+----------------------+ | 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 A800 80GB PCIe Off | 00000000:CA:00.0 Off | 0 | | N/A 57C P0 81W / 300W | 34730MiB / 81920MiB | 2% Default | | | | Disabled | +-----------------------------------------+----------------------+----------------------+ +---------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=======================================================================================| | 0 N/A N/A 86880 C python 34718MiB | +---------------------------------------------------------------------------------------+
本文链接:https://blog.runxinyun.com/post/159.html 转载需授权!
留言0