ytop icon indicating copy to clipboard operation
ytop copied to clipboard

nvidia/GPU support?

Open mwilliammyers opened this issue 5 years ago • 8 comments

What do you think about adding GPU support via one of these crates?

Have you looked into it?

I would be happy to open a PR if it is something we would like to add...

mwilliammyers avatar Jan 24 '20 23:01 mwilliammyers

Yah that sounds good.

cjbassi avatar Jan 25 '20 17:01 cjbassi

I think I should probably add GPU support to psutil?

mwilliammyers avatar Jan 25 '20 20:01 mwilliammyers

That's a good question, maybe we could start by just implementing things in ytop and then see about upstreaming it if it makes sense since I'm not totally sure what exactly were implementing yet. Also, maybe check to see if theres a GPU rust crate already.

cjbassi avatar Jan 25 '20 21:01 cjbassi

Cool.

As far as I can tell there are only bindings to the Nvidia Management Library via one of these crates. I was thinking nvml-wrapper looked like the best option.

That being said, I would love to have cross platform & cross GPU manufacturer support if possible, so maybe I will keep looking...?

mwilliammyers avatar Jan 25 '20 22:01 mwilliammyers

Yeah cross platform GPU support would be nice. maybe we could start with Nvidia and add that to ytop if you want.

cjbassi avatar Jan 27 '20 16:01 cjbassi

Cool, I will try to open a PR ASAP.

mwilliammyers avatar Jan 27 '20 18:01 mwilliammyers

Looks like i3status-rust does some Nvidia stuff: https://github.com/greshake/i3status-rust/blob/master/src/blocks/nvidia_gpu.rs

They could probably benefit from an Nvidia library too so that they could clean up their code a bit

cjbassi avatar Feb 06 '20 05:02 cjbassi

Radeontop (written in C) might also be a good point of reference for AMD cards.

Seirdy avatar Apr 27 '20 19:04 Seirdy