nvtop
nvtop copied to clipboard
[Feature] Allow using nvtop as a library for other apps
I think this app does a great job as a tool for monitoring GPU usage for different vendors.
But a CLI app is not always something people need.
I think, that with minor modifications this repository could be also used for building just a C (or C++) library libnvtop
, which could be used by other developers to create other apps allowing monitoring GPUs.
It could be used as a base for plugin for existing system monitors, and standalone GUI monitors, it could be used for monitoring servers used for machine learning with cockpit addon, or with Performance Co-Pilot, etc.
Example with grafana-pcp:
@Syllo
What do you think about this idea?
While I agree that such library would be useful, I think that the current license would not be a good match for such library.
@Syllo
What is wrong with current license? (GPL-3)
What is wrong with current license? (GPL-3)
@Syllo (sorry for pinging, but I would really like to help with this issue)
I arrived here with a similar wish to use reading gpu metrics from a library and nvtop seems to support every gpu for my use-cases.
GPLv3 wouldn't be an issue as the project would be a personal toy project I could easily license as GPLv3 too. Alternatively it might not a big issue to have the license of the library as LGPLv3 while nvtop itself stays GPLv3, so non-GPL projects could link to the library (not necessary for me though :grin:).