-
Notifications
You must be signed in to change notification settings - Fork 283
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
JSON output #10
Comments
With the '--json' option, all the necessary information can be exported in a JSON format.
Partly included in v0.3.0 |
When the json output is stable, maybe we can detach the data collecting module and display module. Then we can request GPU usages from different remote data collecting nodes via HTTP or something else. |
Exactly, I am hoping to decouple them so that we can collect and display GPU usages from different machines. Working on these, so stay tuned :-) |
Any news on this? Wouldn't mind giving a helping hand. |
I'd like to recommend an NVML binding for Python to collect GPU information rather than |
@Stonesjtu Quite agree with you. It provides more information, and we could turn |
I'm trying to move the Update: you may like to review my PR #17 |
JSON output is a great feature! A few notes on the current implementation:
|
@gyscos I think fileds with dot can be naturally organized into sub-dict. e.g. {
'utilization':
{
'gpu': 40,
'memory': 30,
}
} |
I plan to make a few of breaking changes towards 1.0, such as units and use of numerical values. |
would it be possible to get driver_version and cuda_version (if available) in the json output? |
@cceyda driver version has been added into the JSON output. However, cuda version isn't something gpustat cannot retrieve from querying nvidia driver. The cuda runtime may vary by applications and dynamic libraries being loaded. Please refer to https://stackoverflow.com/questions/9727688/how-to-get-the-cuda-version for how to get the cuda version. |
There won't be breaking changes in the units (e.g. MB vs bytes) but later we will add a flag/option to specify the units or to customize the JSON schema. |
No description provided.
The text was updated successfully, but these errors were encountered: