From dd54068c0f5e8a52be5641bf7c6038cfaaab98f5 Mon Sep 17 00:00:00 2001 From: v1j4y Date: Thu, 7 Mar 2024 00:43:35 +0100 Subject: [PATCH] Fixed some calls for python@3.12 --- 10-task-pull-spawn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/10-task-pull-spawn.py b/10-task-pull-spawn.py index 6d1a858..7083d97 100755 --- a/10-task-pull-spawn.py +++ b/10-task-pull-spawn.py @@ -51,7 +51,7 @@ sys.stdout.flush() # Gather reports from workers - reports = comm.gather(root=MPI.ROOT) + reports = comm.gather(0, root=MPI.ROOT) # Print summary workers = 0; tasks = 0; time = 0 @@ -89,7 +89,7 @@ # Ask for work until stop sentinel log = [] - for task in iter(lambda: comm.sendrecv(dest=0), StopIteration): + for task in iter(lambda: comm.sendrecv(0, dest=0), StopIteration): log.append(task) # Do work (or not!)