Ubuntu Nvidia GPU机器学习环境搭建(安装cuDNN)

安装cuDNN

安装

我们参考Installing cuDNN on Linux进行安装,我们可以从cudnn下载

我的系统是Ubuntu 22.04 X64版本,所以我选择Local Installer for Ubuntu22.04 x86_64 (Deb)

依次执行

ruby 复制代码
thinktik@thinkstation:~/Downloads$ sudo dpkg -i cudnn-local-repo-ubuntu2204-8.9.2.26_1.0-1_amd64.deb 
thinktik@thinkstation:~/Downloads$ sudo cp /var/cudnn-local-repo-*/cudnn-local-*-keyring.gpg /usr/share/keyrings/
thinktik@thinkstation:~/Downloads$ sudo apt-get update
ruby 复制代码
thinktik@thinkstation:~/Downloads$ sudo apt-get install libcudnn8
thinktik@thinkstation:~/Downloads$ sudo apt-get install libcudnn8-dev
thinktik@thinkstation:~/Downloads$ sudo apt-get install libcudnn8-samples

校验

ruby 复制代码
thinktik@thinkstation:~/Downloads$ cp -r /usr/src/cudnn_samples_v8/ $HOME
thinktik@thinkstation:~/Downloads$ cd  $HOME/cudnn_samples_v8/mnistCUDNN
thinktik@thinkstation:~/cudnn_samples_v8/mnistCUDNN$ make clean && make
# 如果没报错就没必要安装
thinktik@thinkstation:~/cudnn_samples_v8/mnistCUDNN$ sudo apt-get install libfreeimage3 libfreeimage-dev

执行检测,看到pass表示测试通过

ruby 复制代码
thinktik@thinkstation:~/cudnn_samples_v8/mnistCUDNN$ ./mnistCUDNN
相关推荐
武子康5 小时前
Shippy:确定性工具、会话级 Sandbox 与 Live-Data Eval(4 类收敛 + 7 步实现方案 + 6 类评测指标)
前端·人工智能·后端
我叫黑大帅5 小时前
我为什么单一消费者的场景下,要用 Redis List 当消息队列?
redis·后端·面试
AskHarries6 小时前
文件上传系统
后端
止语Lab7 小时前
好的 DX 不等于少写代码——三种语言的摩擦力设计课
后端
吃饱了得干活7 小时前
别再手动解析 LLM 输出了!LangChain 四种结构化输出方案对比
后端·python·langchain
程序员天天困7 小时前
Arthas trace 命令怎么用?一行定位最慢那行代码
jvm·后端
Huiturn7 小时前
GPT 5.6 连续编码 10 小时,纯 Python 啃下 Word 二进制格式——doc2docx 实现拆解
后端
用户298698530147 小时前
Python 实现 Excel 与 Markdown 互转的实用指南
后端·python·excel
用户77283104908407 小时前
krono-job:零侵入、单二进制交付的分布式任务调度平台(开源)
后端
Conan在掘金7 小时前
鸿蒙报错速查:Function lacks ending return statement,返回路径漏 return 就炸,根因 + 真解法
后端