mpi4py: some working examples
Original imports:
Broadcasting data between nodes:
Scattering jobs to nodes
To scatter jobs to nodes when the number of jobs is not equal to the number of
process:
Example output:
bougui@mantrisse /d/shm> mpirun -np 2 ./scatter_jobs_mpi.py
Job array:
[[0 1]
[2 None]]
rank 0: job 0
rank 1: job 1
rank 0: job 2
{0: 0, 1: 1, 2: 4}
If you want to ask me a question or leave me a message add @bougui505 in your comment.