Install CuDNN on Ubuntu 16.04?

本文介绍如何在 Ubuntu 16.04 上安装 CUDA 和 CuDNN,以支持 TensorFlow 或 Theano 的运行。步骤包括从官方仓库安装 CUDA,注册 NVIDIA 开发者账号下载 CuDNN,并将 CuDNN 库文件复制到正确的位置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

摘自http://askubuntu.com/questions/767269/how-can-i-install-cudnn-on-ubuntu-16-04

For TensorFlow or theano, I would like to install cuda and CuDNN. How do I do that on Ubuntu 16.04?


Answer:

Step 0: Install cuda from the standard repositories.

Step 1: Register an nvidia developer account and download cudnn here (about 80 MB)

Step 2: Check where your cuda installation is. For the installation from the repository it is /usr/lib/... and /usr/include. Otherwise, it will be /urs/local/cuda/. You can check it with which nvcc or ldconfig -p | grep cuda

Step 3: Copy the files:

$ cd folder/extracted/contents
$ sudo cp include/cudnn.h /usr/include
$ sudo cp lib64/libcudnn* /usr/lib/x86_64-linux-gnu/
$ sudo chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn*

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值