Skip to content

Commit c72b93b

Browse files
committed
wording/clarity changes
1 parent 826c302 commit c72b93b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

spawn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def spawn(args, size):
3737
results = intercomm.gather(None, root=MPI.ROOT)
3838
results = {color: data for color, data in results} # Remove duplicate color info
3939
results = [data for _, data in sorted(results.items())] # Recast to a list with just the data, sorted by color
40-
print("After parcing the results by color, the parent got the following info: {}".format(results))
40+
print("After parcing the results by color, the parent gathered the following data: {}".format(results))
4141

4242
intercomm.Disconnect()
4343
print("Successfully disconnected parent.")

spawn_multiple.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def main(split_into=2):
2727

2828
if rank == 0:
2929
print("We will spawn {} workers with {} cores each out of a total of {} cores.".format(split_into, cores_per_comm, size))
30-
print("Those {} workers will get the following as input:".format(split_into))
30+
print("Those {} split communicators will get the following as input:".format(split_into))
3131
for i in range(split_into):
32-
print(" Worker {}: {}".format(i, data_by_process[i]))
32+
print(" Communicator {}: {}".format(i, data_by_process[i]))
3333
spawn_multiple(split_into, cores_per_comm, data_by_process)
3434

3535

@@ -48,7 +48,7 @@ def spawn_multiple(split_into, cores_per_comm, args):
4848
results = {color: data for color, data in results} # Remove duplicate color info
4949
results = [data for _, data in sorted(results.items())] # Recast to a list with just the data, sorted by color
5050

51-
print("After parcing the results by color, the parent got the following info: {}".format(results))
51+
print("After parcing the results by color, the parent gathered the following data: {}".format(results))
5252

5353
intercomm.Disconnect()
5454
print("Successfully disconnected parent.")

spawn_multiple_loop.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ def main(split_into=2, nloops=3):
2828

2929
if rank == 0:
3030
print("At each iteration we will spawn {} workers with {} cores each out of a total of {} cores.".format(split_into, cores_per_comm, size))
31-
print("Those {} workers will get the following as input:".format(split_into))
31+
print("Those {} split communicators will get the following as input:".format(split_into))
3232
for i in range(split_into):
33-
print(" Worker {}: {}".format(i, data_by_process[i]))
33+
print(" Communicator {}: {}".format(i, data_by_process[i]))
34+
3435
for i in range(nloops):
3536
spawn_multiple(split_into, cores_per_comm, data_by_process)
3637

0 commit comments

Comments
 (0)