跳过正文
NVIDIA【GDRCopy】
  1. 运维日记/

NVIDIA【GDRCopy】

·413 字·1 分钟·
目录
nvidia - 这篇文章属于一个选集。
§ 7: 本文

如何在NVIDIA GPU上进行性能压测,需要部署哪些工具?本文将介绍如何进行性能压测,以及需要部署哪些工具。

NVIDIA【性能压测】
#

基础环境:

  • Ubuntu 22.04;内核5.15.0-119-generic
  • NVIDIA GPU
  • Mellanox
  • GitHub【科学网络】

一、基础环境
#

1.1 配置源
#

  1. 备份原有 sources.list(若已存在则不重复覆盖)
[ -f /etc/apt/sources.list ] && cp -n /etc/apt/sources.list /etc/apt/sources.list.bak
  1. 写入阿里云 Ubuntu 22.04 (jammy) 镜像源
cat <<'EOF' > /etc/apt/sources.list
deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
EOF
  1. 更新源
sudo apt update

1.2 内核包
#

apt install linux-image-5.15.0-119-generic linux-headers-5.15.0-119-generic linux-tools-5.15.0-119-generic linux-cloud-tools-5.15.0-119-generic

二、gdrdrv
#

安装方式
#

本地编译

本地编译手动构建 rpmdeb 包,进行安装。建议使用官方已经构建好的 rpmdeb 包进行安装。

参考文档: GitHub gdrcopy

DNF OR APT

软件文档: gdrcopy

  1. 下载安装包;依次选择cuda版本、操作系统、CPU架构

# 1. 下载deb
wget https://developer.download.nvidia.cn/compute/redist/gdrcopy/CUDA%2012.8/ubuntu22_04/x64/gdrdrv-dkms_2.5.1-1_amd64.Ubuntu22_04.deb
wget https://developer.download.nvidia.cn/compute/redist/gdrcopy/CUDA%2012.8/ubuntu22_04/x64/libgdrapi_2.5.1-1_amd64.Ubuntu22_04.deb
wget https://developer.download.nvidia.cn/compute/redist/gdrcopy/CUDA%2012.8/ubuntu22_04/x64/gdrcopy_2.5.1-1_amd64.Ubuntu22_04.deb
wget https://developer.download.nvidia.cn/compute/redist/gdrcopy/CUDA%2012.8/ubuntu22_04/x64/gdrcopy-tests_2.5.1-1_amd64.Ubuntu22_04+cuda12.8.deb

# 2. 安装
# apt 方式
apt install ./*.deb
# dpkg 方式
dpkg -i ./*.deb

结语
#

参考:

nvidia - 这篇文章属于一个选集。
§ 7: 本文

相关文章


微信赞赏
微信赞赏
关注公众号
关注公众号
支付宝赞赏
支付宝赞赏