Closed telegraphic closed 5 years ago
That's a cool idea. It would also be good if we could add in GPU utilization somehow. I think nvidia-smi
only supports that for computing cards but maybe there is a way to get around it. Is power usage a good proxy of utilization?
Oh, it looks like the gaming cards don't provide the power draw through nvidia-smi
.
I made a few changes to like_top.py
to address this in 1e61eda. It should be able to handle CPU-only builds and the limited nvidia-smi
information you get on some cards.
For my own purposes, I modified like_top to report GPU usage. Could be added in, but needs better handling of multiple GPUs, and if it's a CPU-only build.
Here's the code gist:
And then in the display loop:
And then you get this extra line: