LoginSignup
2
2

More than 3 years have passed since last update.

WindowsにUbuntuを入れてGPGPUを使用する

Posted at

WindowsにUbuntuを入れてGPGPUを使用する

以下3つが必要
・WSL2
・Windows Insider Programのdevチャンネルの購読
・NvidiaDriverのバージョンを最新に

sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo sh -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt-get update
sudo apt-get install -y cuda-toolkit-11-0

ちょっと最近のWindowsUpdateでWSLが使えなくなるバグがあるので、そういうのに会ったら、回復で前回のバージョンに戻すを使用

以下は参考リンク

windows:wsl:trouble_shooting [ともやん・どっと・ねっと]
https://www.tomoyan.net/windows/wsl/trouble_shooting

NVIDIAドライバダウンロード
https://www.nvidia.co.jp/Download/index.aspx?lang=jp

Windows Subsystem for Linux 2(WSL 2)をセットアップしてみた | Developers.IO
https://dev.classmethod.jp/articles/how-to-setup-wsl2/

待ってました CUDA on WSL2 - Qiita
https://qiita.com/ksasaki/items/ee864abd74f95fea1efa

WSL2 にしたいのにエラーが出る問題 - Qiita
https://qiita.com/saida/items/ab6c5a980a1f5383c23a

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