From a21f9cf2fb9f5e39d3af749f0d357868d104933c Mon Sep 17 00:00:00 2001 From: Caohongtao Date: Mon, 26 Feb 2024 05:53:01 +0000 Subject: [PATCH] =?UTF-8?q?update=20examples/python/create-rankfile.py.=20?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Caohongtao --- examples/python/create-rankfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python/create-rankfile.py b/examples/python/create-rankfile.py index 171de33..ae0bca6 100644 --- a/examples/python/create-rankfile.py +++ b/examples/python/create-rankfile.py @@ -6,7 +6,7 @@ def generate_rankfile(hostfile_path): hosts = hostfile.readlines() num_hosts = len(hosts) ranks_per_host = 64 - for host in enumerate(hosts): + for _,host in enumerate(hosts): hostname = host.strip() for rank in range(ranks_per_host): rank_content = f"rank {rank_id}={hostname} slot=0-63" -- Gitee