Hi,
Sorry for the long delay in answering. The problem seems to stem from the
lack of MPI_Comm_spawn in MPICH. I would like to emphasise that
MPI_Comm_spawn is the only way in MPI to spawn processes. One option you
might have is to look at IBM's MPI. Hope this helps.
Regards,
Anju
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 ?
>
> 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/
>
|