Skip to content
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

[Feature request] One-liner summary #2

Open
AdityaKane2001 opened this issue Apr 8, 2024 · 0 comments
Open

[Feature request] One-liner summary #2

AdityaKane2001 opened this issue Apr 8, 2024 · 0 comments

Comments

@AdityaKane2001
Copy link

AdityaKane2001 commented Apr 8, 2024

Current state:
The current output shows all GPUs and all processes. This is informative, but is a bit verbose.

Proposed addition:
Have a one-liner to get state of all GPUs. It would contain the util % of all GPUs in a row (tab/2-space separated) in their respective colors.

Implementation details:
Add one more flag to the argparser (maybe "-ol", "--one-line"?), and get aggregate statistics from the output of parse_smi (maybe write a new function) and add a new function generate_line as a replacement for generate_table. Finally add the respective if-else block in main.

Let me know if this sounds feasible, if it does I'll create a PR for this.

/cc @alihassanijr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant