<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Jayesh,<BR> <BR>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.<BR> <BR>Regards,<BR>Toufik<br> <BR><div><div id="SkyDrivePlaceholder"></div>> Date: Thu, 5 Apr 2012 11:32:18 -0500<br>> From: jayesh@mcs.anl.gov<br>> To: mpich-discuss@mcs.anl.gov<br>> CC: h_toufik7@hotmail.fr<br>> Subject: Re: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator<br>> <br>> Hi,<br>> The slightly modified (don't disconnect an invalid comm) versions of your code works for me.<br>> Make sure that worker.exe and master.exe are in the same directory (Or else spawn() needs to be provided with the information).<br>> <br>> Regards,<br>> Jayesh<br>> <br>> ----- Original Message -----<br>> From: "toufik hadjazi" <h_toufik7@hotmail.fr><br>> To: mpich-discuss@mcs.anl.gov<br>> Sent: Thursday, April 5, 2012 3:32:11 AM<br>> Subject: Re: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator<br>> <br>> <br>> <br>> Hi, <br>> <br>> <br>> <br>> <br>> 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 <br>> <br>> thanks & regards, <br>> Toufik <br>> <br>> <br>> > Date: Wed, 4 Apr 2012 13:00:15 -0500 <br>> > From: jayesh@mcs.anl.gov <br>> > To: h_toufik7@hotmail.fr <br>> > CC: mpich-discuss@mcs.anl.gov <br>> > Subject: Re: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator <br>> > <br>> > Hi, <br>> > How are you running your programs (Copy-paste the commands)? Are you running your code on Unix or Windows? <br>> > <br>> > Regards, <br>> > Jayesh <br>> > ----- Original Message ----- <br>> > From: "toufik hadjazi" <h_toufik7@hotmail.fr> <br>> > To: jayesh@mcs.anl.gov <br>> > Sent: Wednesday, April 4, 2012 12:31:05 PM <br>> > Subject: RE: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator <br>> > <br>> > <br>> > Hi Jayesh, <br>> > <br>> > <br>> > I tried that but it didn't work, when i run the program it stops at MPI_Comm_spawn, i don't why. <br>> > <br>> > <br>> > best regards, <br>> > Toufik <br>> > <br>> > <br>> > <br>> > > Date: Tue, 3 Apr 2012 10:36:56 -0500 <br>> > > From: jayesh@mcs.anl.gov <br>> > > To: mpich-discuss@mcs.anl.gov <br>> > > CC: h_toufik7@hotmail.fr <br>> > > Subject: Re: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator <br>> > > <br>> > > Hi, <br>> > > Did you try MPI_Intercomm_merge() after spawn and using the resulting intracommunicator for further spawns? <br>> > > <br>> > > Regards, <br>> > > Jayesh <br>> > > <br>> > > ----- Original Message ----- <br>> > > From: "toufik hadjazi" <h_toufik7@hotmail.fr> <br>> > > To: mpich-discuss@mcs.anl.gov <br>> > > Sent: Tuesday, April 3, 2012 8:20:52 AM <br>> > > Subject: [mpich-discuss] get several children of mpi_comm_spawn into one intracommunicator <br>> > > <br>> > > <br>> > > <br>> > > Hi, <br>> > > 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? <br>> > > regards, <br>> > > Toufik <br>> > > <br>> > > <br>> > > <br>> > > _______________________________________________ <br>> > > mpich-discuss mailing list mpich-discuss@mcs.anl.gov <br>> > > To manage subscription options or unsubscribe: <br>> > > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss <br>> <br>> _______________________________________________<br>> mpich-discuss mailing list mpich-discuss@mcs.anl.gov<br>> To manage subscription options or unsubscribe:<br>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss<br></div>                                            </div></body>
</html>