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

news/2025/11/21 15:53:43/文章来源:https://www.cnblogs.com/wenxiao1-2-3-4/p/19253327

 安装需求如下图

 

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.mzph.cn/news/972238.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

2025 年 11 月电缆生产厂家排名出炉!知名品牌推荐 + 天津消防电缆厂家优选指南

电缆作为电力传输、工程建设、消防安全等领域的核心装备,其产品质量与企业实力直接关系到项目安全与使用体验。2025 年 11 月,结合行业口碑、生产资质、产品性能等多维度指标,本文整理了国内知名电缆生产厂家排名,…

2025恩施一对一家教机构综合推荐,提分优选:靠谱方案推荐排行榜

孩子成绩总上不去,恩施的家长们真是操碎了心!想找靠谱的一对一辅导,却发现越找越迷茫:有的机构宣传提分显著,实际课程枯燥乏味,孩子根本学不进去;有的师资介绍华丽,结果老师连恩施本地考纲都不熟悉;还有的收费…

低门槛 + 全周期赋能:天翼云息壤大模型应用服务平台加速千行百业 AI 落地

2025年,大模型应用服务平台已成为企业解锁AI价值的关键载体。它不仅是模型与业务的连接桥梁,更能提供从模型选型、开发适配到部署运维的全流程支持,旨在解决企业“技术门槛高、落地周期长、适配成本高”的核心痛点。…

三层C/S架构的部署图

三层C/S架构的部署图graph TDsubgraph A [表示层 - 客户端]A1[手机App]A2[微信小程序]A3[触摸屏自助终端]endsubgraph B [功能层 - 应用服务器集群]B1[负载均衡器<br>Nginx]B2[用户/订单服务]B3[支付/库存服务]B…

SATA接口调试问题记录

问题描述 在物理层进行建链过程,前面COMRESET、COMINT、COMWAKE以及Dial Tone过程,HOST、DEV都正常交互, 但Align到Sync过程,HOST收到DEV发送的原语Align后,给DEV发Sync,DEV还是一直给HOST回Align

3、步进电机梯形加减速

为什么要使用加减速呢?如果你在基础部分学习,硬件驱动细分器与软件的细分参数或定时器分频参数设置不当时启动电机时,会遇见步进电机有啸叫声但是不会转动,这是因为软件产生脉冲的频率大于步进电机的启动频率,步进…

云鼎未来,智营全局——哲讯科技以SAP Business ByDesign引领中型企业迈向协同运营新纪元

云鼎未来,智营全局——哲讯科技以SAP Business ByDesign引领中型企业迈向协同运营新纪元在数字化转型的浪潮中,中型企业正面临一场关乎未来的战略抉择:是继续依赖零散的管理系统勉强支撑,还是拥抱一体化平台实现全…

2025 最新除甲醛机构权威推荐榜单:标杆企业技术服务测评解析,新房 / 家具 / 车内 / 办公除醛优选酒店除甲醛 / 室内除甲醛 / 附近除甲醛 / 学校除甲醛公司推荐

引言 室内甲醛污染已成为全球关注的健康隐患,据国际室内空气质量协会(IAQA)最新数据,新装修空间甲醛超标率高达 82%,长期接触会导致呼吸道疾病、免疫力下降等健康风险。为筛选优质服务机构,本次榜单联合欧盟虫害…

超微Supermicro服务器安装英伟达A100,cuda

​系统raid配置系统安装及配置 系统安装选择开启ssh,这里配置联网信息,需要联网下载安装包 登录平台查看英伟达信息 安装gcc # 安装gcc12 sudo apt install gcc-12 sudo update-alternatives --install /usr/bin/…

镜头分辨率如何匹配工业相机的分辨率

能被分辨开来的两个物点之间的最小距离,就是镜头的物方分辨率。单位为m。这只是单纯镜头本身的参数,只反映镜头的解析能力,而和工业相机多少像素无关!它直接反映了,一个理想物点经过镜头成像后,会模糊成多大一个…

linux,centos,aarch架构下载并部署redis

linux,centos,aarch架构下载并部署redis1.第一步,当然是下载一个redis的稳定版, 如果能连上外网,直接命令下载就好sudo wget https://download.redis.io/releases/redis-7.4.5.tar.gz不能的话,就手动传上去 网址:…

2025年11月河南自习室加盟市场分析与品牌推荐

2025年11月河南自习室加盟市场分析与品牌推荐近年来,共享Ai自习室在河南等多个省份逐渐兴起,成为许多创业者关注的项目。面对不同的自习室加盟/代理品牌,许多初次接触这个行业的朋友会感到困惑:这些自习室加盟/代理…

习题解析之:判断火车票座位

习题解析之:判断火车票座位【问题描述】 我国高铁一等座车座席采用2+2方式布置,每排设有“2+2”方式排列四个座位,以“A、C、D、F”代表,字母“A”和“F”的座位靠窗,字母“C”和“D”靠中间走道。 二等座车座席采用2…

题解:NFLSOI#P10008. Speike和Tom

众所周知,Speike 狗是一条特别喜欢追着 Tom 打的狗。 现在,Tom 又把 Speike 惹生气了,现在 Speike 需要跨越千山万水找 Tom 报仇。 Speike 所在的世界可以看成是一个无穷大的平面,平面由一个平面直角坐标系确定。在…

洛谷 B4410:[GESP202509 一级] 金字塔 ← 循环结构

​【题目来源】https://www.luogu.com.cn/problem/B4410【题目描述】金字塔由 n 层石块垒成。从塔底向上,每层依次需要 nn, (n−1)(n−1), ⋯, 22, 11 块石块。请问搭建金字塔总共需要多少块石块?【输入格式】一行,…

CF246E bfs 序上莫队

来篇莫队,支持正义根号。 发现是数颜色,这不是我们莫队的经典题目吗,所以考虑莫队。 发现 \(k\) 级儿子挺好,这给出了两个性质,分别在 bfs 序和 dfs 序上。bfs 序上,同一子树内深度相同的点相邻。 dfs 序上,可以…

2025 年 11 月降本增效管理咨询公司推荐排行榜,降本增效咨询,企业降本增效,提质增效咨询机构,专业实力与客户满意度深度解析

2025年11月降本增效管理咨询公司推荐排行榜,降本增效咨询,企业降本增效,提质增效咨询机构,专业实力与客户满意度深度解析 在当前经济环境下,企业面临着日益严峻的成本压力和效率挑战。降本增效管理咨询服务作为提…

小型食品厂省心了!CLC-S22R 控温又省成本​

开小型面包房、酱菜厂、豆制品厂的老板们,是不是总被 “温度”“湿度” 愁得睡不着?烘焙面包要精准控温,差 2 度就烤焦;腌酱菜要稳定湿度,潮了容易坏;这些参数靠人工盯,不仅累,还总出错,一批货废了就是几千块…

质量基石:读懂检查表,用好数字化管理利器

在企业运营与质量管理中,我们总在寻找一种简单而有效的方法,能将复杂的问题条理化,将模糊的感觉数据化。检查表,正是这样一款基石性的工具。 一、什么是检查表? 核心定义:检查表,又称调查表、核对表,是一种为了…

P4148 简单题 模板题分析

供自己复习使用,因此只贴代码。 题目链接:https://www.luogu.com.cn/problem/P4148。 代码 时间复杂度 \(\mathcal{O}(n\sqrt n)\)。 #include <iostream> #include <cstdio> #include <stdlib.h>…