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
相关推荐
全栈弄潮儿30 分钟前
Python实战第8期:函数
后端·python·编程语言
码事漫谈1 小时前
你让 AI “尽力做”,它反而可能做不好
后端
孟健1 小时前
LLM API 安全防线:从 OpenCode 盗刷事件到 LiteLLM 多模型容灾实操
人工智能·后端·架构
程序员cxuan2 小时前
我用 WorkBuddy + ima 把公众号文章做成了知识库。
人工智能·后端·程序员
程序员cxuan2 小时前
玩了一天 REA,我号快没了
人工智能·后端·程序员
卷无止境2 小时前
暗流与破局:AI时代的代码安全审查工具全景指南
后端·python
smallyoung2 小时前
告别N+1:Spring Boot 一键数据翻译框架体系
java·后端·架构
程序猿DD3 小时前
OctaFuse Gateway 2.16.0:新增 ElevenLabs 的支持、厂商原生端点重构、后台管理优化
后端
掘金者阿豪3 小时前
列存储适不适合订单报表?从一条慢 SQL 聊聊金仓 KES 的使用边界
后端
武子康3 小时前
150毫秒和2400毫秒:同一 Agent 任务的两种延迟
人工智能·后端·agent