From: Alexander Bell <albe@lvs.informatik.rwth-aachen.de>
Newsgroups: comp.parallel.mpi
Subject: Re: mpirun command
Date: 01 Oct 1998 09:51:44 +0200
Organization: Aachen University of Technology / Rechnerbetrieb Informatik
Message-Id: <lqzpbg67ov.fsf@lvs.informatik.rwth-aachen.de>
References: <3612A5F1.1E9EBCB7@cism.jpl.nasa.gov>
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Mail-Copies-To: never


Vijaya R Lakamraju <vlakamra@cism.jpl.nasa.gov> writes:

> so basically I would like to use mpirun in the following way
>      mpirun -np 2 test1 -np 3 test2 ( where both test1 and test2
>                                                                     togather
> form the application)

I'm not sure if this is usable in all MPI implementations, but the MPICH
mpirun command supports the option: 

-p4pg filename
            Use the given p4 procgroup file instead of creating one.
            Overrides -np and -nolocal, selects -leave_pg.

so if you have a file named p4group containing:

<------------------------------ cut ------------------------------>
host1 0 test1
host2 1 test1
host3 1 test2
host4 1 test2
host5 1 test2
<------------------------------ cut ------------------------------>

and give the command:

mpirun -p4pg p4group test1

on host1, test1 should be started on host1 and host2, test2 on host3, host4,
host5. 

cu albe.

