工作小计:
(1)Linux下可使用Nvidia自带的命令查看nvidia-smi查看显卡的数量及使用情况。
(2)使用watch命令进行Nvidia显卡使用情况的查看
watch命令使用格式及常用命令
Usage:
watch [options] command
Options:
-b, --beep beep if command has a non-zero exit
-c, --color interpret ANSI color and style sequences
-d, --differences[=]
highlight changes between updates//高亮显示改变,如时间的改变
-e, --errexit exit if command has a non-zero exit
-g, --chgexit exit when output from command changes//执行后自动检测变化,并自动退出
-n, --interval seconds to wait between updates//按设定时间,周期执行命令
-p, --precise attempt run command in precise intervals
-t, --no-title turn off header //