Dear Collegues, How to make mpiexec or mpirun to launch processes ordered by their rank ?
I've already tried to launch a simple process under Windows and Linux:
int namelen, numprocs, proc_rank, tmp = 1; char processor_name[MPI_MAX_PROCESSOR_NAME]; unsigned long array_size = 100; long* array = (long*)calloc(sizeof(long), array_size); MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &numprocs); MPI_Comm_rank(MPI_COMM_WORLD, &proc_rank); MPI_Get_processor_name(processor_name, &namelen); fprintf(stdout, "[%s@mpiexec] process %d of %d\n", processor_name, proc_rank, numprocs); MPI_Finalize();
mpiexec -ordered-output -al 2:P --n 4 simplempi.exe
mpirun --map-by core -np 4 simplempi.exe
This takes no effect. Processes are anyway running in their arbitrary order.
So, please, if it's possible, please help me to do that so processes are launched ordered by their ranks, e.g. 0,1,2,3,4,...
Waiting for your reply. Arthur.