You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param sleep_time: The number of seconds to sleep in between usage-collection iterations.
303
303
:param ram_unit: One of 'bytes', 'kilobytes', 'megabytes', 'gigabytes', or 'terabytes'.
@@ -307,6 +307,7 @@ def __init__(
307
307
:param gpu_uuids: The UUIDs of the GPUs to track utilization for. The length of this set is used as the denominator when calculating the hardware percentages of the GPU utilization (i.e. n_expected_gpus). Defaults to all the GPUs in the system.
308
308
:param disable_logs: If set, warnings are suppressed during tracking. Otherwise, the Tracker logs warnings as usual.
309
309
:param process_id: The ID of the process to track. Defaults to the current process.
310
+
:param resource_usage_file: The file path to the pickle file containing the ``resource_usage`` attribute. This file is automatically deleted and the ``resource_usage`` attribute is set in memory if the tracking successfully completes. But if the tracking is interrupted, the tracking information will be saved in this file as a backup. Defaults to a randomly generated file name in the current working directory of the format ``.gpu-tracker_<random UUID>.pkl``.
310
311
:param n_join_attempts: The number of times the tracker attempts to join its underlying sub-process.
311
312
:param join_timeout: The amount of time the tracker waits for its underlying sub-process to join.
312
313
:raises ValueError: Raised if invalid units are provided.
0 commit comments