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

toufik hadjazi h_toufik7 at hotmail.fr
Fri Apr 6 07:10:00 CDT 2012


Hi Jayesh, your modified version works for me but it's not what i wanted to do. I wanted to make the three processes (the client, the server and the spawned child) in the same intracommunicator, so the this intarcommunicator will have size 3, but with your version it contains only the spawned child and the server. Regards,Toufik
 > Date: Thu, 5 Apr 2012 11:32:18 -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,
>  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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120406/31e889a8/attachment.htm>


More information about the mpich-discuss mailing list