当前位置: 首页 > news >正文

Ubuntu22.04.4安装配置CUDA12.5,Cdnn官方详细版本

 安装需求如下图

 

image

 

 

机器raid配置

两块磁盘做raid1,参见官方raid,配置手册

 

https://www.supermicro.com/support/manuals/

系统下载

https://old-releases.ubuntu.com/releases/22.04/

制作U盘

 

使用rufus制作,

 

U盘系统安装

 

重启按F11,选择U盘,操作步骤截图如下:

 

image

 

image

 

image

 

 

获取到ip地址,点击下一步

 

image

 

 

image

 

image

 


 

image

 

 

ubuntu远程登录

 

后续使用远程登录,远程登录界面如下

 

image

 

安装docker

可在选择系统安装部分,选择勾选docker即可

image

 

 

安装GCC

GCC版本要求参考官方

CUDA Toolkit Documentation 12.5

System Requirements 配置如下

 

To use NVIDIA CUDA on your system, you will need the following installed:

  • CUDA-capable GPU
  • A supported version of Linux with a gcc compiler and toolchain
  • CUDA Toolkit (available at https://developer.nvidia.com/cuda-downloads)

The CUDA development environment relies on tight integration with the host development environment, including the host compiler and C runtime libraries, and is therefore only supported on distribution versions that have been qualified for this CUDA Toolkit release.

The following table lists the supported Linux distributions. Please review the footnotes associated with the table.

 

image

 

# 安装gcc12

sudo apt  install gcc-12

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12

admin1@admin1:~$ gcc --version

gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0

Copyright (C) 2022 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

安装Cuda12.5

Cuda官方下载链接

https://developer.nvidia.com/cuda-downloads

安装文档参考官方

 

CUDA 12.6 Update 1 Release Notes

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin

sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600

wget https://developer.download.nvidia.com/compute/cuda/12.5.0/local_installers/cuda-repo-ubuntu2204-12-5-local_12.5.0-555.42.02-1_amd64.deb

sudo dpkg -i cuda-repo-ubuntu2204-12-5-local_12.5.0-555.42.02-1_amd64.deb

sudo cp /var/cuda-repo-ubuntu2204-12-5-local/cuda-*-keyring.gpg /usr/share/keyrings/

sudo apt-get update

sudo apt-get -y install cuda-toolkit-12-5

 安装GPU驱动

 

 

安装命令,最新版

 

sudo apt-get install -y cuda-drivers

 

如果你想要安装指定版本,2选1即可

 

sudo apt-get install -y cuda-drivers-555

 

安装完毕执行nvidia-smi

image

 

 

安装cudnn

 

官方下载链接

https://developer.nvidia.com/cudnn-archive

 

安装文档参考(新版cdnn9.x.x)

 

NVIDIA cuDNN — NVIDIA cuDNN v9.4.0 documentation

 

安装文档参考(新版cdnn8.x.x)

 

Installation Guide :: NVIDIA cuDNN Documentation

 

 

deb包安装(适用于新版cdnn9.x.x)

 

wget https://developer.download.nvidia.com/compute/cudnn/9.4.0/local_installers/cudnn-local-repo-ubuntu2204-9.4.0_1.0-1_amd64.deb

sudo dpkg -i cudnn-local-repo-ubuntu2204-9.4.0_1.0-1_amd64.deb

sudo cp /var/cudnn-local-repo-ubuntu2204-9.4.0/cudnn-*-keyring.gpg /usr/share/keyrings/

sudo apt-get updatesudo apt-get -y install cudnn

 

  1. To install for CUDA 11, perform the above configuration but install the CUDA 11 specific package:

sudo apt-get -y install cudnn-cuda-11

 

  1. To install for CUDA 12, perform the above configuration but install the CUDA 12 specific package:

 

sudo apt-get -y install cudnn-cuda-12

 

 

deb包安装(适用于8.x.x)

 

Download the Debian local repository installation package. Before issuing the following commands, you must replace X.Y and 8.x.x.x with your specific CUDA and cuDNN versions.

  1. Navigate to your downloads directory containing the cuDNN Debian local installer file.
  2. Enable the local repository.

sudo dpkg -i cudnn-local-repo-${distro}-8.x.x.x_1.0-1_amd64.deb

or

sudo dpkg -i cudnn-local-repo-${distro}-8.x.x.x_1.0-1_arm64.deb

Import the CUDA GPG key.

sudo cp /var/cudnn-local-repo-*/cudnn-local-*-keyring.gpg /usr/share/keyrings/

Refresh the repository metadata.

sudo apt-get update

Install the runtime library.

sudo apt-get install libcudnn8=8.x.x.x-1+cudaX.Y

Install the developer library.

sudo apt-get install libcudnn8-dev=8.x.x.x-1+cudaX.Y

Install the code samples.

sudo apt-get install libcudnn8-samples=8.x.x.x-1+cudaX.Y

 

 

tar包安装

 

Before issuing the following commands, you must replace X.Y and v8.x.x.x with your specific CUDA and cuDNN versions and package date.

  1. Navigate to your <cudnnpath> directory containing the cuDNN tar file.
  2. Unzip the cuDNN package.

 tar -xvf cudnn-linux-x86_64-8.x.x.x_cudaX.Y-archive.tar.xz

Copy the following files into the CUDA toolkit directory.

sudo cp cudnn-*-archive/include/cudnn*.h /usr/local/cuda/include

sudo cp -P cudnn-*-archive/lib/libcudnn* /usr/local/cuda/lib64

sudo chmod a+r /usr/local/cuda/include/cudnn*.h /usr/local/cuda/lib64/libcudnn*

 

 

安装fabricmanager

官方文档链接如下

1. Overview — Fabric Manager for NVIDIA NVSwitch Systems r560 documentation

Note  In the following commands, <driver-branch> should be substituted with the required NVIDIA driver branch number for qualified data center drivers (for example, 560).

  • For Debian and Ubuntu based OS distributions:

sudo apt-get install -V nvidia-open-<driver-branch>

sudo apt-get install -V nvidia-fabricmanager-<driver-branch> nvidia-fabricmanager-dev-<driver-branch>

 

 

安装nvidia- container-toolkit

 

官方安装文档

Installing the NVIDIA Container Toolkit — NVIDIA Container Toolkit 1.16.2 documentation

 

Installing with AptConfigure the production repository:

curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \

&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \

sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \

sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list

Optionally, configure the repository to use experimental packages:

sed -i -e '/experimental/ s/^#//g' /etc/apt/sources.list.d/nvidia-container-toolkit.list

Update the packages list from the repository:

sudo apt-get update

Install the NVIDIA Container Toolkit packages:

sudo apt-get install -y nvidia-container-toolkit

 

 

 

 

 


http://www.jsqmd.com/news/46737/

相关文章:

  • 2025 年 11 月电缆生产厂家排名出炉!知名品牌推荐 + 天津消防电缆厂家优选指南
  • 2025恩施一对一家教机构综合推荐,提分优选:靠谱方案推荐排行榜
  • 低门槛 + 全周期赋能:天翼云息壤大模型应用服务平台加速千行百业 AI 落地
  • 三层C/S架构的部署图
  • SATA接口调试问题记录
  • 3、步进电机梯形加减速
  • 云鼎未来,智营全局——哲讯科技以SAP Business ByDesign引领中型企业迈向协同运营新纪元
  • 2025 最新除甲醛机构权威推荐榜单:标杆企业技术服务测评解析,新房 / 家具 / 车内 / 办公除醛优选酒店除甲醛 / 室内除甲醛 / 附近除甲醛 / 学校除甲醛公司推荐
  • 超微Supermicro服务器安装英伟达A100,cuda
  • 镜头分辨率如何匹配工业相机的分辨率
  • linux,centos,aarch架构下载并部署redis
  • 2025年11月河南自习室加盟市场分析与品牌推荐
  • 习题解析之:判断火车票座位
  • 题解:NFLSOI#P10008. Speike和Tom
  • 洛谷 B4410:[GESP202509 一级] 金字塔 ← 循环结构
  • CF246E bfs 序上莫队
  • 2025 年 11 月降本增效管理咨询公司推荐排行榜,降本增效咨询,企业降本增效,提质增效咨询机构,专业实力与客户满意度深度解析
  • 小型食品厂省心了!CLC-S22R 控温又省成本​
  • 质量基石:读懂检查表,用好数字化管理利器
  • P4148 简单题 模板题分析
  • 【压测数据分享】VictoriaLogs 中的参数 `inmemoryDataFlushInterval` 对写入性能的影响
  • Windows系统增强神器!PowerToys微软官方效率工具(实操v教程)!
  • Linux内核实验-ubuntu
  • 2025年11月四川自习室加盟市场分析与品牌推荐
  • 2025年电极生产厂家权威推荐榜单:航空插头/马达壳/插针源头厂家精选
  • 2025 最新推荐装盒机厂家权威排行榜:全自动 / 食品 / 纸巾 / 卫生巾装盒机技术创新与整线配套能力测评
  • P9433 [NAPC-#1] Stage5 - Conveyors 分析
  • 我发现上大学虚构痛苦是件非常愚蠢的事
  • Qt 实现“可点击跳转”的 QSlider
  • 技术架构进化论:从“独栋别墅”到“智慧城市”