7.8. Example Output

[peloton:~/mpi2] tkaiser% mpiexec -n 1 tspawn.py 
      MYMPI VERSION 1.13.0 

MPI_WTIME_IS_GLOBAL 0
  MPI_UNIVERSE_SIZE 2
         MPI_TAG_UB 2147483647
           MPI_HOST 0
             MPI_IO 0
mpi version 2.0
peloton.sdsc.edu running head 
peloton.sdsc.edu starting /Users/tkaiser/mpi2/worker.py
parentSize 3
hello from python worker 2  writing to  from_P_02
starting bcast
parentSize 3
hello from python worker 1  writing to  from_P_01
starting bcast
errors= [0 0 0]
newcom1Size 1  yes it is strange but it should be 1
head starting bcast [1 2 3 4]
parentSize 3
hello from python worker 0  writing to  from_P_00
starting bcast
head did bcast
2  got  [1 2 3 4]
1  got  [1 2 3 4]
0  got  [1 2 3 4]
0  got scatter  [10]
from  0 [101]
2  got scatter  [30]
1  got scatter  [20]
from  1 [201]
from  2 [301]
the final answer is= [3]
peloton.sdsc.edu starting /Users/tkaiser/mpi2/worker
errors= [0 0 0]
newcom2Size 1
Hello from c worker 1 writing to from_C_01
Hello from c worker 2 writing to from_C_02
Hello from c worker 0 writing to from_C_00
run time= 21.964277029 with resolution= 1e-06
[peloton:~/mpi2] tkaiser%