1、官方仓库
针对驱动包下载认准nvidia官网
dpkg -i nvidia-driver-local-repo-ubuntu2204-550.54.15_1.0-1_amd64.deb
apt update
apt search nvidia-driver-550
2、安装
根据步骤1apt search nvidia-driver-550查出版本:此驱动包封在nvidia-driver-local-repo-ubuntu2204-550.54.15_1.0-1_amd64.deb中
apt install nvidia-driver-550
修改说明(最新):经测试发现存在在进行apt install nvidia-driver-550安装时还是需要安装部分依赖。可以先根据提示安装依赖在进行安装
至此nvidia-smi PCIe通信方式已可用
nvidia-smi topo -m查看 GPU卡连接方式
3、启用NVLink高速模式
NVLink是GPU服务器厂家专为GPU间高效通信定制的连接,有硬件接口支持,比一般的PCIe速度快2倍以上。
apt install cuda-drivers-fabricmanager-550
apt install nvidia-modprobesystemctl start nvidia-fabricmanager.service
systemctl status nvidia-fabricmanager.service 查看启动服务是否正常
nvidia-smi topo -m查看 GPU卡连接方式已变成NVLink
4、附:涉及的nvidia包
注意看版本比较统一:都是从本地仓库获取的550版本
dpkg -l | grep nvidia
ii libnvidia-cfg1-550:amd64 550.54.15-0ubuntu1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-550 550.54.15-0ubuntu1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-550:amd64 550.54.15-0ubuntu1 amd64 NVIDIA libcompute package
ii libnvidia-decode-550:amd64 550.54.15-0ubuntu1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-550:amd64 550.54.15-0ubuntu1 amd64 NVENC Video Encoding runtime library
ii libnvidia-extra-550:amd64 550.54.15-0ubuntu1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-550:amd64 550.54.15-0ubuntu1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-550:amd64 550.54.15-0ubuntu1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii nvidia-compute-utils-550 550.54.15-0ubuntu1 amd64 NVIDIA compute utilities
ii nvidia-dkms-550 550.54.15-0ubuntu1 amd64 NVIDIA DKMS package
ii nvidia-driver-550 550.54.15-0ubuntu1 amd64 NVIDIA driver metapackage
ii nvidia-driver-local-repo-ubuntu2204-550.54.15 1.0-1 amd64 nvidia-driver-local repository configuration files
ii nvidia-fabricmanager-550 550.54.15-1 amd64 Fabric Manager for NVSwitch based systems.
ii nvidia-firmware-550-550.54.15 550.54.15-0ubuntu1 amd64 Firmware files used by the kernel module
ii nvidia-kernel-common-550 550.54.15-0ubuntu1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-550 550.54.15-0ubuntu1 amd64 NVIDIA kernel source package
ii nvidia-modprobe 550.54.15-0ubuntu1 amd64 Load the NVIDIA kernel driver and create device files
ii nvidia-prime 0.8.17.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 550.54.15-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-550 550.54.15-0ubuntu1 amd64 NVIDIA driver support binaries
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-550 550.54.15-0ubuntu1 amd64 NVIDIA binary Xorg driver