From 87beee541c5bf5ed610b4928ee67778322ca5a02 Mon Sep 17 00:00:00 2001 From: kuizhiqing Date: Mon, 20 Jun 2022 11:59:19 +0800 Subject: [PATCH] fix gpu log typo (#43634) --- python/paddle/distributed/launch/controllers/watcher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/distributed/launch/controllers/watcher.py b/python/paddle/distributed/launch/controllers/watcher.py index 131d915292..6e8a2cc4e8 100644 --- a/python/paddle/distributed/launch/controllers/watcher.py +++ b/python/paddle/distributed/launch/controllers/watcher.py @@ -24,7 +24,7 @@ class Watcher(object): def __init__(self, ctx): self.ctx = ctx - self.interval = 10 + self.interval = 30 self.gpu_util = [] @@ -80,7 +80,7 @@ class Watcher(object): self.gpu_fd.flush() except: - self.ctx.log.error("save gpu info failed") + self.ctx.logger.warning("save gpu info failed") def _save_gpu_log(self, util_key): try: @@ -89,7 +89,7 @@ class Watcher(object): self.gpu_fd.write('\n') self.gpu_fd.flush() except: - self.ctx.log.error("save gpu log failed") + self.ctx.logger.warning("save gpu log failed") def stop(self): if hasattr(self, "proc"): -- GitLab