-
Notifications
You must be signed in to change notification settings - Fork 144
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
GPU Widget #42
Comments
Clone cjbassi#170 |
@xxxserxxx why cloning the issue btw? 🤔 |
@talentlessguy Caleb is not maintaining gotop any longer, but also doesn't want anybody else maintaining his repository, nor is he comfortable with moving issues. I'm continuing development and maintenance of gotop, so I've forked and copied the tickets so that I can keep working on them. See this issue for more information. |
@talentlessguy there have been new releases, as well. |
@xxxserxxx ok, thanks for information |
A couple of NVidia merge requests have been made; one of them crashes gotop and the other spikes the CPU. They both use the same library to get information. There's a C binding from NVIDIA that also might work; I'll give it a try, although I don't have an NVidia card to test against. |
@xxxserxxx there are other GPUs that imo need to be supported - AMD and Intel. Intel GPU has a |
If you're willing to be a tester, please respond to this ticket with the card you have access to.
|
|
As I'm working on this, a couple of things are coming to mind:
Flagging for the v3.4.0 release. |
@xxxserxxx that sucks that there are no native go libs for AMD GPU an that nvidia sucks a lot of CPU. implementing GPU integration is a tough task, but if it will appear in |
For posterity: https://github.com/ChrisCummins/intel-gpu-tools, and other tools suggested by @talentlessguy . I'm closing #52 in favor of this, as it has broader scope. From what I've learned in the past couple of days, I should be able to get temperature, processing usage, and memory usage for at least NVIDIA, and some subset of those for Intel. I haven't made any progress with AMD yet. ssimunic/gosensors looks promising! |
Clearing the milestone. Support is in the current v3.5.0, and the actual device will be released separately as an extension. Leaving open until that's released. |
I'm interested in the status of nvidia gpu support. Is there any support i can offer? |
@mrcpj1998, @ionlights, I'm prepping for the v4.0.0 release and have new NVidia code. Would you mind trying it and letting me know how it works (or doesn't)? A binary is available in the gotop-builder project. This depends on the Thank you. talentlessguy, I tried not tagging you but since you responded to this ticket you may get an email. Sorry for the duplicate message. |
So, I like the idea of a GPU widget, but it seems like it'll only be useful for NVidia. There are no Intel GPU libraries for Go available (that I can find), and the tool set is not suited for the "execute-and-parse" model -- the There are some universal options I can explore on Linux by accessing the devices directly through I'm not going to close this; nearly everybody has some sort of GPU. A solution that works with all vendor cards, on all OSes, is going to take some time, so I'm taking it out of the release plan for now. |
Just to update. I tried the linked release, and it loads for about a second then exits uncleanly. I don't know how to provide more detailed error reports |
@mrcpj1998 that's what I like to hear! Total chaos. If you can type at all, try a
or if it's too long, attach it? Do you have |
All, releases now trigger the building of a Linux binary with NVidia support. Let me know if it works (or doesn't work) for you. @mrcpj1998, I found the issue and believe I've resolved it. |
It' s working for me with 4 nvidia 2080Ti, Thanks. |
I' d sugget making gpu display disabled by default. Sometimes under a faulty gpu |
@mrcpj1998, @ionlights, @talentlessguy, @xgdgsc The extension is built-in, and just like the external extension, relies on the Example:
The If I get confirmation this works, I'll merge NVidia support into the next release. Why?As I've mentioned before, Go plugins are simply not practical for this (any?) use case, and my hacky solution -- while clever -- was ugly and really user unfriendly, even for people familiar with Go. Since it uses the nvidia-smi tool, this version of NVidia GPU support does not import any huge libraries and there's little reason to not include it. The one reason that does exist scares me a little: if we do find a good, cross-platform NVidia library, it'll probably be harder to use. If it has external dependencies, I won't be able to release binaries that include it, and if it's native Go and large, it'll bloat the binary unnecessarily for non-NVidia users. However, I suppose I'll have to cross that bridge when I come to it; for now, I'm planning to pursue this method. Thank you! |
I tested it works. |
Thanks @xgdgsc. |
Hoping for an Intel iGPU support |
It would be nice to see GPU usage widget, using
intel_gpu_top
ornvidia-smi
. I know that both arent' supported on some devices but if it is supported it would be nice to see. Now I have to open a special tab forintel_gpu_top
:intel_gpu_top source code | nvidia smi wrapper for golang
The text was updated successfully, but these errors were encountered: