Re: [Myricom help #19368] [Fwd: mpirun.ch_gm -pg option and passing program arguments]

Susan Blackford <[email protected]> 23 Jul 2003 09:55:14 -0400
Newsgroups gmane.network.myrinet.general
Message-ID <1058968516.418.225.camel@idefix>
Hi,

> > I have a question about -pg option of mpirun.ch_gm.
> > 
> > Is there a way to pass my application's (running at
> > rank 0) arguments into each executable listed in a
> > procfile when using -pg option?
> > 
> > I use
> > 
> > mpirun.ch_gm -pg procgrp a.exe arg1 arg2
> > 
> > to run my program where procgrp is:
> > 
> > host1 0 /x/y/a.exe
> > host2 1 /x/z/b.exe
> > 
> > It looks like there is only one argument (besides
> > mpi's own stuff)
> > passed which is the program name (/x/y/a.exe).

If you are passing arguments to the executables, that needs
to done in your procgroup file.  Invoke with:

    mpirun.ch_gm -pg procgrp a.exe

where your procgrp file looks like:

    host1 0 /x/y/a.exe username arg1 arg2
    host2 1 /x/z/b.exe username arg1 arg2

Note that you must specify username if you are passing arguments
to the executables.

Also note that (unlike MPICH), MPICH-GM does not spawn the
first MPI process on the host to which the mpirun.ch_gm
command was invoked.  All MPI processes are spawned according
to your $PREFIX/share/machines.ch_gm.ARCH or your machinefile
or procgroup file.
  http://www.myri.com/cgi-bin/fom?file=237

Feel free to contact us at [email protected] if you need further
assistance.

Susan