[mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator

Jayesh Krishna jayesh at mcs.anl.gov
Thu Apr 5 11:32:18 CDT 2012


Hi,
 The slightly modified (don't disconnect an invalid comm) versions of your code works for me.
 Make sure that worker.exe and master.exe are in the same directory (Or else spawn() needs to be provided with the information).

Regards,
Jayesh

----- Original Message -----
From: "toufik hadjazi" <h_toufik7 at hotmail.fr>
To: mpich-discuss at mcs.anl.gov
Sent: Thursday, April 5, 2012 3:32:11 AM
Subject: Re: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator



Hi, 




I'm using windows 7 and i'm running the two applications using the commands: mpiexec -n 1 manager and mpiexec -n 1 worker. and for the code it is attached to this email 

thanks & regards, 
Toufik 


> Date: Wed, 4 Apr 2012 13:00:15 -0500 
> From: jayesh at mcs.anl.gov 
> To: h_toufik7 at hotmail.fr 
> CC: mpich-discuss at mcs.anl.gov 
> Subject: Re: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator 
> 
> Hi, 
> How are you running your programs (Copy-paste the commands)? Are you running your code on Unix or Windows? 
> 
> Regards, 
> Jayesh 
> ----- Original Message ----- 
> From: "toufik hadjazi" <h_toufik7 at hotmail.fr> 
> To: jayesh at mcs.anl.gov 
> Sent: Wednesday, April 4, 2012 12:31:05 PM 
> Subject: RE: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator 
> 
> 
> Hi Jayesh, 
> 
> 
> I tried that but it didn't work, when i run the program it stops at MPI_Comm_spawn, i don't why. 
> 
> 
> best regards, 
> Toufik 
> 
> 
> 
> > Date: Tue, 3 Apr 2012 10:36:56 -0500 
> > From: jayesh at mcs.anl.gov 
> > To: mpich-discuss at mcs.anl.gov 
> > CC: h_toufik7 at hotmail.fr 
> > Subject: Re: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator 
> > 
> > Hi, 
> > Did you try MPI_Intercomm_merge() after spawn and using the resulting intracommunicator for further spawns? 
> > 
> > Regards, 
> > Jayesh 
> > 
> > ----- Original Message ----- 
> > From: "toufik hadjazi" <h_toufik7 at hotmail.fr> 
> > To: mpich-discuss at mcs.anl.gov 
> > Sent: Tuesday, April 3, 2012 8:20:52 AM 
> > Subject: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator 
> > 
> > 
> > 
> > Hi, 
> > my program is a client/server application when the client connects to the server than the server starts to use mpi_comm_spawn to launch other clients(clients are launched, one after other not in the same time, when conditions are satisfied) and i need all clients and the server to be in the same intracommunicator. so, does anybody knows some tricks to do that? 
> > regards, 
> > Toufik 
> > 
> > 
> > 
> > _______________________________________________ 
> > mpich-discuss mailing list mpich-discuss at mcs.anl.gov 
> > To manage subscription options or unsubscribe: 
> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 

_______________________________________________
mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
To manage subscription options or unsubscribe:
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Manager.cpp
Type: text/x-c++src
Size: 1459 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120405/b4f16f9d/attachment-0002.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Worker.cpp
Type: text/x-c++src
Size: 921 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120405/b4f16f9d/attachment-0003.cpp>


More information about the mpich-discuss mailing list