[mpich2-dev] configfile vs machinefile

Pavan Balaji balaji at mcs.anl.gov
Mon Mar 12 08:21:01 CDT 2012


The configfile and machinefile are two different things.

The configfile allows you put in a default set of arguments that your 
mpiexec should take (e.g., number of processes, what machinefile to use, 
what binding to use, etc.).  For example, if you add "-n 4" in your 
configfile (and put it in ~/.mpiexec.hydra.conf), and run "mpiexec foo", 
it'll run 4 processes by default.  You can give "mpiexec -n 8 foo" if 
you want to override what the configfile has.

The machinefile gives the list of hosts on which the application should 
be run.

  -- Pavan

On 03/12/2012 08:13 AM, Thomas Wharton wrote:
>     Hello,
>
>     I have three questions regarding configfiles/machinefiles used with
>     mpiexec.
>
>     1) What is the difference between a configfile and a machinefile?
>
>     2) Are they, or can they be, used in conjunction? (Or should they be
>     used in conjunction?)
>
>     3) Does a configfile provide everything that a machinefile does?
>     (Note: From what I've read, it seems like the options you can set in
>     configfile are a superset of the machinefile -- but I am not certain
>     about this).
>
>     Many Thanks,
>     Thomas Wharton
>

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji


More information about the mpich2-dev mailing list