I'm using LAM now, but I'm goint to port my
application to a system that uses MPICH (IBM SP2),
and MPICH does not support MPI_Comm_spawn.
Ian
--- Prabhanjan Kambadur <pkambadu_at_[hidden]> wrote:
> On Sat, 10 Apr 2004, Alex Nu wrote:
>
> > Hi,
> >
> > Is there a way to specify how many processes I
> > want to spawn in the MPI_INIT subroutine ?
> > Or any other way to spawn processes besides
> > mpi_comm_spawn ?
> >
>
> No, this is not possible. As far as your problem is
> concerned, it seems
> that MPI_Comm_spawn is the only way to do it. This
> is the only way in MPI
> to create new processes. Is there any particular
> reason you do not want to
> use MPI_Comm_spawn?
>
> Anju.
>
> > I want to add a subroutine to a program where I
> would
> >
> > use MPI just under certain conditions and using
> > different number of processes.
> > ( I want to avoid using mpi_comm_spawn)
> >
> > short example:
> >
> > main(int argc, char *argv[])
> > {
> > ...
> > if (condition) mympi(mpi_argc, mpiargv)
> > ...
> > }
> >
> > mympi(int argc, char *argv[]) {
> > ...
> > MPI_Init(argc,argv);
> > MPI_Comm_size(MPI_COMM_WORLD, &size);
> > MPI_Comm_rank(MPI_COMM_WORLD, &rank);
> > ....
> > MPI_Finalize()
> > }
> >
> > Thanks
> >
> > Alex
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online by April 15th
> > http://taxes.yahoo.com/filing.html
> > _______________________________________________
> > This list is archived at
> http://www.lam-mpi.org/MailArchives/lam/
> >
> _______________________________________________
> This list is archived at
http://www.lam-mpi.org/MailArchives/lam/
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
|