LoginSignup
1
2

More than 5 years have passed since last update.

UbuntuのPycharmでChainer(GPU)を使う

Posted at

UbuntuでPycharmを使ってChainerを動かす場合、
GPUを利用すると↓のようなエラーが出ます。

image.png

環境変数のPATHが反映されてないことが原因なので
コードに追加してあげます。

os.environ["PATH"] = "/usr/local/cuda-8.0/bin:/usr/bin:"

※自分の場合は、/usr/binも追加してあげると直りました。

その他のやり方として、
Run > Edit Configurations > Environment variables
にてGUIから環境変数を追加できますが、若干面倒です。

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