MoseleyBioinformaticsLab / gpu_tracker

Context manager and CLI that tracks the computational-resource-usage of a code block or shell command, particularly the GPU usage.
Other
4 stars 1 forks source link

CLI? #6

Closed erikhuck closed 3 months ago

erikhuck commented 3 months ago

Right now, the Tracker can only be used within python scripts. There may be users who would like to get gpu (and other usage) information about their job without needing to write a python script (e.g. a python script that they don't want to edit or a job that doesn't run python at all). It may be helpful to introduce a commandline interface where the tracker can run in the background while some other terminal command runs. The challenge would be getting the process information of the command to profile. It could be the the subprocess library provides that information.

erikhuck commented 3 months ago

Other things to add: