LoginSignup
1
0

ubuntuでcudnnをaptでインストール

Last updated at Posted at 2018-11-11

(2023/11/23追記)
ubuntu22.04向けにはmachine-learning/repos/ubuntu2204が無いため以下の方法は使えなくなったが、いつのまにか普通にCUDAを入れるとlibcudnnなどもインストールできるようになった模様。


なぜだかよくわからないが以下のNVIDIA DIGITSインストール方法記載のrepoを追加することでlibcudnnのインストールがaptでできるみたい。
https://github.com/NVIDIA/DIGITS/blob/master/docs/BuildDigits.md

以下だけ実行すればOK。

$ curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | apt-key add -
$ echo "deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/nvidia-ml.list
$ apt-get update
$ apt-cache search libcudnn
libcudnn5-dev - cuDNN development libraries and headers
libcudnn5 - cuDNN runtime libraries
libcudnn6-dev - cuDNN development libraries and headers
libcudnn6 - cuDNN runtime libraries
libcudnn7-dev - cuDNN development libraries and headers
libcudnn7 - cuDNN runtime libraries
libcudnn7-doc - cuDNN documents and samples

ver upが出てもapt-get upgradeで対応できるので楽。
なぜcudnn公式のインスール方法でこれを書かないんだろう?

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0