LoginSignup
3
2

More than 5 years have passed since last update.

Debian 7 WheezyにCUDA 7.5をインストールする。

Posted at

概要

NVIDIA社のCUDAはDebianを公式にサポートしていない。
が、Ubuntu用で代替する方法を紹介する。
今回使用したマシンのOSはDebian 7 Wheezy(もうすぐサポート切れるの?LTS?

> cat /etc/issue
Debian GNU/Linux 7 \n \l
> uname -a
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u2 x86_64 GNU/Linux

インストール

公式のダウンロードページ
https://developer.nvidia.com/cuda-downloads
Linux -> x86_64 -> Ubuntu -> 14.04 -> runfile(local)の順に選択すればダウンロードリンクが現れる。
直リンクから取得する場合は、

> wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run

あとはシェルで実行すれば対話的環境でインストールが始まる。

> sh cuda_7.5.18_linux.run

ライセンスを承認、サンプルのインストールの有無、インストールの場所などを聞かれるのでyesとdefaultでだいたいOK。
インストールが完了したらパスとか通す。

> export PATH=/usr/local/cuda/bin:$PATH
> export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH

参考サイト

3
2
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
3
2