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

Option to disable warnings #19

Closed erikhuck closed 5 months ago

erikhuck commented 6 months ago

A user may expect child processes to come and go frequently e.g. with PyTorch data loaders. So with processes constantly disappearing, it's actually pretty frequent to run into the edge case of attempting to get memory information of a process that no longer exists, resulting in frequent warning messages. The user may like an option to disable these warnings. The default option should be to keep the warnings.