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.

GPUが起動できるかのチェック

Last updated at Posted at 2023-01-23

GPU 利用できるかのチェック

1. 以下を実行し、Trueが出ているかチェック

import torch

print(torch.cuda.is_available())

2. 以下Falseが出たとき用

システムのアップデート

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

CUDA, CUDNNの削除

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

Install CUDA

今回は11.3のインストール例

wget https://developer.download.nvidia.com/compute/cuda/11.0.3/local_installers/cuda_11.0.3_450.51.06_linux.run

再起動

reboot

Install できたかチェック

import torch
print(torch.cuda.is_available())

参考

How to install the NVIDIA driver

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?