版权声明:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/DarrenXf/article/details/82954864
安装
pip install gpustat
或者 换源
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade gpustat
使用
gpustat -cpu
或者
watch --color -n1 gpustat -cpu
显示输出