From 0ff428bb96cbda9ed7bef4046d611513f4f68904 Mon Sep 17 00:00:00 2001 From: clearml <> Date: Mon, 28 Oct 2024 18:11:00 +0200 Subject: [PATCH] Fix report index not advancing in resource monitoring causes more than one GPU not to be reported --- clearml_agent/helper/resource_monitor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/clearml_agent/helper/resource_monitor.py b/clearml_agent/helper/resource_monitor.py index 9f08ce4..d4b6ffc 100644 --- a/clearml_agent/helper/resource_monitor.py +++ b/clearml_agent/helper/resource_monitor.py @@ -401,6 +401,7 @@ class ResourceMonitor(object): fractions = self._fractions_handler.fractions stats["gpu_fraction_{}".format(report_index)] = \ (fractions[i] if i < len(fractions) else fractions[-1]) if fractions else 1.0 + report_index += 1 except Exception as ex: # something happened and we can't use gpu stats,