I am trying to run multiple instances of an mpi executable with one call to mpirun. I am using the following line to start my program from different directories so that it starts with different parameters.
mpirun -np 8 -wdir ./S1 $WDIR/S1/$EXE :\
-np 8 -wdir ./S2 $WDIR/S2/$EXE :\
-np 8 -wdir ./S3 $WDIR/S3/$EXE :\
-np 8 -wdir ./S4 $WDIR/S4/$EXE
The executable follows a master-slave scheme and expects to have a rank 0 node to act as master.
Is it possible to call mpirun so that internally every instance of my executable see its processor ranks running from 0 to 7?