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

Incorporate changes from ACMPP #3

Closed erikhuck closed 3 months ago

erikhuck commented 4 months ago

Due to some apparent bug where the tracker appeared to be preventing the context from closing, perhaps due to hangs in the queue or process join, I had to update the copy of the tracker in the ACMPP project to resolve the issue so we could complete the analysis. There's a copy because this repo has not become a distributable package yet and likely will not be for the upcoming ACMPP manuscript but perhaps in future ones. Anyway, the changes made, including the transition to a thread instead of process to avoid the bug as well as some error handling if the bug arrises again anyway, need to be transferred to this project. The usage of a thread instead of a process may additionally make writing tests easier.

erikhuck commented 3 months ago

Completed by #4