33
25

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 5 years have passed since last update.

nvidia-smiでGPUのメモリ使用量を継続的に監視する

Last updated at Posted at 2019-10-22

nvidia-smiでGPUのメモリ使用量を継続的に監視する

データセット訓練中に、CUDAのメモリが足りずにエラー
一体どこでそんなにGPUのメモリを食っているんだ!
nvidia-smiを連打する?

いいや、もっといい方法があるぞ

#0.5秒毎にnvidia-smiの情報を更新して表示する
watch -n 0.5 nvidia-smi

#上記+変更点をハイライト
watch -d -n 0.5 nvidia-smi

##実行結果

Screenshot from 2019-10-22 15-46-59.png

では〜

33
25
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
33
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?