基于ubuntu22.04系统安装nvidia A100驱动与NVLink启用

kingredfly 2024-06-15 10:07:10 阅读 82

1、官方仓库

针对驱动包下载认准nvidia官网

在这里插入图片描述

dpkg -i nvidia-driver-local-repo-ubuntu2204-550.54.15_1.0-1_amd64.debapt updateapt 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-550apt install nvidia-modprobesystemctl start nvidia-fabricmanager.servicesystemctl status nvidia-fabricmanager.service 查看启动服务是否正常nvidia-smi topo -m查看 GPU卡连接方式已变成NVLink

4、附:涉及的nvidia包

注意看版本比较统一:都是从本地仓库获取的550版本

dpkg -l | grep nvidiaii libnvidia-cfg1-550:amd64 550.54.15-0ubuntu1 amd64 NVIDIA binary OpenGL/GLX configuration libraryii libnvidia-common-550 550.54.15-0ubuntu1 all Shared files used by the NVIDIA librariesii libnvidia-compute-550:amd64 550.54.15-0ubuntu1 amd64 NVIDIA libcompute packageii libnvidia-decode-550:amd64 550.54.15-0ubuntu1 amd64 NVIDIA Video Decoding runtime librariesii libnvidia-encode-550:amd64 550.54.15-0ubuntu1 amd64 NVENC Video Encoding runtime libraryii libnvidia-extra-550:amd64 550.54.15-0ubuntu1 amd64 Extra libraries for the NVIDIA driverii libnvidia-fbc1-550:amd64 550.54.15-0ubuntu1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime libraryii libnvidia-gl-550:amd64 550.54.15-0ubuntu1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICDii nvidia-compute-utils-550 550.54.15-0ubuntu1 amd64 NVIDIA compute utilitiesii nvidia-dkms-550 550.54.15-0ubuntu1 amd64 NVIDIA DKMS packageii nvidia-driver-550 550.54.15-0ubuntu1 amd64 NVIDIA driver metapackageii nvidia-driver-local-repo-ubuntu2204-550.54.15 1.0-1 amd64 nvidia-driver-local repository configuration filesii 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 moduleii nvidia-kernel-common-550 550.54.15-0ubuntu1 amd64 Shared files used with the kernel moduleii nvidia-kernel-source-550 550.54.15-0ubuntu1 amd64 NVIDIA kernel source packageii nvidia-modprobe 550.54.15-0ubuntu1 amd64 Load the NVIDIA kernel driver and create device filesii nvidia-prime 0.8.17.1 all Tools to enable NVIDIA's Primeii nvidia-settings 550.54.15-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driverii nvidia-utils-550 550.54.15-0ubuntu1 amd64 NVIDIA driver support binariesii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panelii xserver-xorg-video-nvidia-550 550.54.15-0ubuntu1 amd64 NVIDIA binary Xorg driver



声明

本文内容仅代表作者观点,或转载于其他网站,本站不以此文作为商业用途
如有涉及侵权,请联系本站进行删除
转载本站原创文章,请注明来源及作者。