From f044e2ef7e2cbee2fe0ce51dbab214f985c198af Mon Sep 17 00:00:00 2001 From: xuyongliang_01 Date: Mon, 19 Feb 2024 09:05:26 +0000 Subject: [PATCH] update examples/python/create-rankfile.py. Signed-off-by: xuyongliang_01 --- 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 b21e2ba..171de33 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_id, 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