安装
pip install gpustat
或者 换源
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade gpustat
使用
gpustat -cpu
或者
watch --color -n1 gpustat -cpu
显示输出

本文详细介绍如何通过pip安装GPUStat及其清华源升级版,并演示如何使用GPUStat监控GPU和CPU的状态,包括基本命令和实时颜色输出显示。
安装
pip install gpustat
或者 换源
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade gpustat
使用
gpustat -cpu
或者
watch --color -n1 gpustat -cpu
显示输出


被折叠的 条评论
为什么被折叠?