additional command line switches / extensions for mpiexec?
Pete Wyckoff
pw at osc.edu
Mon Nov 27 17:35:39 EST 2006
thomas.zeiser at rrze.uni-erlangen.de wrote on Mon, 27 Nov 2006 22:21 +0100:
> On Thu, Nov 23, 2006 at 08:26:12PM -0500, Pete Wyckoff wrote:
> > thomas.zeiser at rrze.uni-erlangen.de wrote on Thu, 23 Nov 2006 10:49 +0100:
> > >
> > > 1) mpiexec already has "-pernode" but thinking of n-way nodes with
> > > dual-core CPUs, a switch like "-Npernode <n>" might be very useful
> > > (and probably easy to implement, i.e. in get_hosts.c one probably
> > > only would have to set nodes[i].availcpu to the correct n)
> >
> > This sounds like a good suggestion, and pretty easy to implement
> > in constrain_nodes() along with how -pernode is implemented. I'll
> > stick it in the tree if you code it up (with manpage entry too).
> >
>
> please find attached a patch with my implementation of the feature;
> "-npernode <nprocs>" is added as new command line feature;
> constrain_nodes tries to be smart if different numbers of CPUs are
> available on the nodes and takes the minimum of available CPUs and
> requested number of processes per node ...
Thanks! I checked it in and tested it lightly. With the extra
infrastructure for tracking individual node ids that was added
earlier today, the bit that does the constraining wiggled around
some. Hopefully it's clearer this way, since we have to use a loop
now anyway.
http://svn.osc.edu/browse/mpiexec/trunk/get_hosts.c?r1=390&r2=392&view=patch
I keep hoping to get a release out, but you keep sending me patches
and bug reports. :)
-- Pete
More information about the mpiexec
mailing list