processors and ranks

Pete Wyckoff pw at osc.edu
Thu Nov 4 14:19:54 EST 2004


elmagk at cs.rpi.edu wrote on Wed, 03 Nov 2004 22:05 -0500:
> Is there a way using mpiexec or mpirun to force the association of
> machines with ranks. I want to be able to run process with rank x on
> machine y.

You can use the config file feature:

    $ cat conf
    machine1 : mycode -arg
    machine3 : mycode -arg
    machine2 : mycode -arg
    machine4 : mycode -arg

The ranks are assigned in order in the file starting from 0.  Run with:

    $ mpiexec -config=conf

		-- Pete



More information about the mpiexec mailing list