码迷,mamicode.com
首页 > 系统相关 > 详细

Linux下查看NVIDIA的GPU使用情感

时间:2017-11-01 14:50:04      阅读:301      评论:0      收藏:0      [点我收藏+]

标签:blog   from   this   com   update   inter   for   pass   als   

1.显示当前GPU使用情况

nvidia-smi

2.周期性输入GPU的使用情况

使用watch命令,周期性地输出GPU的使用情况

$ whatis watch
watch (1) - execute a program periodically, showing output fullscreen

$watch

Usage:
watch [options] command

Options:
-b, --beep beep if command has a non-zero exit
-c, --color interpret ANSI color sequences
-d, --differences[=<permanent>]
highlight changes between updates
-e, --errexit exit if command has a non-zero exit
-g, --chgexit exit when output from command changes
-n, --interval <secs> seconds to wait between updates
-p, --precise attempt run command in precise intervals
-t, --no-title turn off header
-x, --exec pass command to exec instead of "sh -c"

-h, --help display this help and exit
-v, --version output version information and exit

每隔10s刷新一次GPU的使用情况

watch -n 10 nvidia-smi

  

Linux下查看NVIDIA的GPU使用情感

标签:blog   from   this   com   update   inter   for   pass   als   

原文地址:http://www.cnblogs.com/forlenia/p/7766035.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!