Make hccl_info folder with rank_id suffix

This commit is contained in:
zhangyihui 2021-08-27 20:24:50 +08:00
parent 1a181e6f1e
commit 283f0c73cd
1 changed files with 1 additions and 1 deletions

View File

@ -676,7 +676,7 @@ class Profiler:
def _analyse_hccl_info(self):
"""Analyse hccl info."""
hccl_path = os.path.join(self._output_path, "hccl_info")
hccl_path = os.path.join(self._output_path, "hccl_info_{}".format(self._rank_id))
if not os.path.exists(hccl_path):
os.makedirs(hccl_path, exist_ok=True)
os.chmod(hccl_path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)