nvtop icon indicating copy to clipboard operation
nvtop copied to clipboard

[Feature] Allow using nvtop as a library for other apps

Open pktiuk opened this issue 1 year ago • 5 comments

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: Vector Overview

pktiuk avatar Apr 12 '23 19:04 pktiuk

@Syllo
What do you think about this idea?

pktiuk avatar Apr 18 '23 07:04 pktiuk

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 avatar May 21 '23 11:05 Syllo

@Syllo
What is wrong with current license? (GPL-3)

pktiuk avatar May 22 '23 11:05 pktiuk

What is wrong with current license? (GPL-3)

@Syllo (sorry for pinging, but I would really like to help with this issue)

pktiuk avatar Jul 24 '23 11:07 pktiuk

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:).

topaxi avatar Oct 12 '23 06:10 topaxi