ubuntu cuDNN安装
时间: 2023-07-28 08:09:10 浏览: 215
ubuntu安装显卡驱动+cuda+cudnn教程(18.04+cuda10+cudnn9.05为例)
5星 · 资源好评率100%
要在Ubuntu上安装cuDNN,您需要执行以下步骤:
1. 首先,安装libfreeimage3和libfreeimage-dev依赖项。您可以使用以下命令进行安装:
```
sudo apt-get install libfreeimage3 libfreeimage-dev
```
\[1\]
2. 接下来,您需要下载并安装CUDA 11.0.2。您可以使用以下命令进行下载和安装:
```
wget https://developer.download.nvidia.com/compute/cuda/11.0.2/local_installers/cuda_11.0.2_450.51.05_linux.run
sudo sh cuda_11.0.2_450.51.05_linux.run
```
\[2\]
3. 最后,您需要安装cuDNN。您可以使用以下命令进行安装:
```
sudo dpkg -i libcudnn8_8.2.4.15-1+cuda11.4_amd64.deb
sudo dpkg -i libcudnn8-dev_8.2.4.15-1+cuda11.4_amd64.deb
sudo dpkg -i libcudnn8-samples_8.2.4.15-1+cuda11.4_amd64.deb
```
\[3\]
请确保您按照上述步骤的顺序执行,并根据您的系统配置选择正确的cuDNN版本。这些步骤将帮助您在Ubuntu上成功安装cuDNN。
#### 引用[.reference_title]
- *1* *3* [Ubuntu之cudnn安装](https://blog.csdn.net/carefree2005/article/details/120083624)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Ubuntu20.04下CUDA、cuDNN的详细安装与配置过程(图文)](https://blog.csdn.net/weixin_37926734/article/details/123033286)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文