You should run an MYMPI program the same way you run MPI programs.
mpirun -np $num_nodes $executable_name |
For example,
mpirun -np 5 p_ex02.py |
Output
hello from 0 of 5
arg_str ('/Users/jren/mympi/mpi_tests/p_ex02.py',)
hello from 1 of 5
hello from 2 of 5
hello from 4 of 5
hello from 3 of 5
getting 2
i= [1234 5678] |