!22496 Make hccl_info folder with rank_id suffix

Merge pull request !22496 from 张毅辉/hccl_folder_with_rank_id_suffix
This commit is contained in:
i-robot 2021-08-28 06:22:11 +00:00 committed by Gitee
commit 60248aae51
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)