Python gpu 显卡小工具 gpu

安装

pip install gpustat

或者 换源

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade gpustat

使用

gpustat -cpu

或者

watch --color -n1 gpustat -cpu

显示输出
在这里插入图片描述

原文地址:https://www.cnblogs.com/vercont/p/10210214.html