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
相关推荐
一灯架构6 小时前
90%的人答错!一文带你彻底搞懂ArrayList
java·后端
mldong8 小时前
Python开发者狂喜!200+课时FastAPI全栈实战合集,10大模块持续更新中🔥
后端
GreenTea8 小时前
从 Claw-Code 看 AI 驱动的大型项目开发:2 人 + 10 个自治 Agent 如何产出 48K 行 Rust 代码
前端·人工智能·后端
Moment11 小时前
AI 全栈指南:NestJs 中的 Service Provider 和 Module
前端·后端·面试
IT_陈寒11 小时前
为什么我的JavaScript异步回调总是乱序执行?
前端·人工智能·后端
Moment11 小时前
AI全栈入门指南:NestJs 中的 DTO 和数据校验
前端·后端·面试
小村儿11 小时前
Harness Engineering:为什么你用 AI 越用越累?
前端·后端·ai编程
小码哥_常11 小时前
为什么PUT和DELETE请求在大公司中逐渐被弃用?
后端
宫_商_角_徵11 小时前
动态代理到底在做什么?
后端
苍何11 小时前
我把微信 cli 开源了,群消息终于不用爬楼了!
后端