未验证 提交 ef445ec8 编写于 作者: C Chitsing KUI 提交者: GitHub

add flag to disable gpu capture (#54762)

上级 be12b6fe
......@@ -89,6 +89,13 @@ def parse_args():
help="rank node by ip. Default False",
)
base_group.add_argument(
"--enable_gpu_log",
type=strtobool,
default=True,
help="enable capture gpu log while running. Default True",
)
base_group.add_argument(
"--nnodes",
type=str,
......
......@@ -27,6 +27,9 @@ class Watcher:
self.gpu_util = []
if not self.ctx.args.enable_gpu_log:
return
# gpu log file
self.gpus = self.ctx.args.devices or self.ctx.node.device.labels
if len(self.gpus) > 0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册