-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to show power stats #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally it looks good. Thank you for your PR!
Please see blow (and squash welcomed).
gpustat.py
Outdated
Returns the GPU power usage in Watts, | ||
or None if the information is not available. | ||
""" | ||
v = self.entry['power.use'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think it should be "power.draw". A convention here is that I am using the same column name as shown in nvidia-smi --help-query-gpu
.
Changed: |
Between |
I'm calling |
Merged, thanks! |
Sometimes one might need to output power draw (usage) only, not power limit. To support this kind of configuration, we introduce an optional argument to '-P' or '--show-power' flag. The option can be: * -P (default) : prints everything. * -Pdraw : prints only power draw (usage). * -Plimit / -Pdraw,limit / -Plimit,draw : prints both (draw and limit). Also, default color of power has been changed appropriately. Follow-up of PR #28.
Adds ability to show optionally power usage and limit (grouped with temperature and utilisation).