LoginSignup
1
3

More than 5 years have passed since last update.

カーネルが新しくなってCUDAが動かなくなったときのtips

Posted at

tensorflowに限りませんが、GPUを使ったdeeplearningは環境構築がちょっと面倒です。
一度構築した環境も、何らかのタイミングでapt-get updateなどしたときにnvidiaのドライバが読み込めなくなることがあります。

ハマったのでメモ

自分の場合は、PCを再起動したらドライバが認識せず、CUDAが動かなくなりました。
たぶん試行錯誤してインストールしていたときに何かしてた。

> ls /dev/nvidia*

なにもなし

エラーとしてはこのように表示されます。

> nvidia-modprobe

modprobe: ERROR: ../libkmod/libkmod-module.c:809 kmod_module_insert_module() could not find module by name='nvidia_352'
modprobe: ERROR: could not insert 'nvidia_352': Function not implemented

自分の場合、新しいカーネルヘッダをインストールすることで解決しました。

apt-get install linux-headers-$(uname -r)
1
3
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
3