-
Notifications
You must be signed in to change notification settings - Fork 280
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
Let --gpuname-width clip gpu names longer than the specified width #47
Comments
The actual name width is calculated as in: Line 435 in f39d9c9
The name of this option should be something like min-gpuname-width. Perhaps it's assumed that user always want the whole name. So could you tell us how would you want to get a partial gpu name. |
Well I am facing the same issue. I think a good behavior for |
@gabriel-vanzandycke @ajason08 Thanks for your suggestion. I'm considering changing the behavior to clipping as you suggested as a part of v1.0 release. Let me work on that if I have some extra cycle (contributions are still welcome). |
This now has been implemented and will be a part of v1.0 release (since it's a kind of breaking change). Longer GPU names will truncate at left, because GPU cards are better distinguishable with suffixes rather than prefixes. For example:
|
I guess the behaviour should change the output from
gpustat [0] GeForce GTX 1080 Ti | 32'C, 0 % | 10795 / 11172 MB
to
gpustat --gpuname-width 10 [0] GeForce GT | 32'C, 0 % | 10795 / 11172 MB
but it doesn't seem to do anything
version: gpustat 0.5.0.dev1
os: Ubuntu 16.04.5 LTS
python: Python 3.6.4 :: Anaconda, Inc.
The text was updated successfully, but these errors were encountered: