I'm using MPI to execute a parallel job over a heterogeneous compute system. The nodes in my network are not all identical.
I would like to specify that machine 'A.univ.edu' has rank 0 and machine 'B.univ.edu' has rank 1.
Is there any way to specify how ranks are assigned to hosts in MPI?
MPI_COMM_WORLD
is controlled bympiexec
. The details differ a bit between MPI implementations, so refer to the man page. In the example with the two hosts, you would just list them in that order in the machinefile. – Greg Inozemtsev