hannesschulze / optimizer

Find out what's eating up your system resources and delete unnecessary files from your disk.
GNU General Public License v3.0
50 stars 11 forks source link

NVDIA GPU Utilization (New Feature) #75

Open msmaldi opened 4 years ago

msmaldi commented 4 years ago

Today I finish my implementation of GPU usage in this awesome project. https://github.com/msmaldi/optimizer

I dont know if is objective of this project, if wanna this implementation in this project, i gonna pull request, else I continue in my fork.

hannesschulze commented 4 years ago

Hi, I am very interested in this feature, thank you very much! However, in order to include it in here, I would also like support for AMD and Intel GPUs - I’ve just looked both of them up and it seems like it should be possible, so I might look into this next week myself.

It would be awesome if you could create a Pull Request from your fork, but not into master but rather into another branch for this feature (which I am going to create).

Can't wait to get this working :)

Matheus Maldi notifications@github.com schrieb am So., 29. Dez. 2019, 23:59:

Today I finish my implementation of GPU usage in this awesome project. [https://github.com/msmaldi/optimizer]

I dont know if is objective of this project, if wanna this implementation in this project, i gonna pull request, else I continue in my fork.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hannesschulze/optimizer/issues/75?email_source=notifications&email_token=AKPFTFODH6O354GDVIN4LWDQ3ETVJA5CNFSM4KBD63EKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IDG24FA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKPFTFK7SHLMPX55QXQUYSTQ3ETVJANCNFSM4KBD63EA .

msmaldi commented 4 years ago

Ok, I will do the Pull Request this week. About AMD and Intel GPU support, I think creating a library responsible for the information is a good idea, with an interface:

int GPU_get_usage(...);
bool GPU_get_product_name(..., char **ptr);

This is an imaginary header in c. My current implementation, i get lib of NVidia from NVidia lib, but I forked lib for use meson in libNVCtrl I have no GPU AMD, any way to virtualize/faker GPU?