0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

CUDA11.3 インストール(Ubuntu18.04)

Posted at

CUDA11.3を選んだ理由は、Pytorchが2022/5/16時点では10.2と11.3に対応しているから。
image.png (45.5 kB)

インストール

https://developer.nvidia.com/cuda-toolkit-archive
↑ここからCUDA11.3を選択する

Installer Typeはdeb(network)を選んだほうが早くインストールできる、最後のsudo apt install cudasudo apt install cuda-11-3とする。こうした方が確実。
image.png (105.9 kB)
インストール後はbashrcを以下のとおりに変更する。

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

バージョン確認

sudo apt install nvidia-cuda-toolkit
nvcc -V
image.png (22.1 kB)

CUDAを消したい or 入れ直したい

これで元どおり。

sudo apt-get --purge remove nvidia-*
sudo apt-get --purge remove cuda-*

参考

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?