Re: [OMPI users] Merging Intracommunicators

2007-10-25 Thread Jeff Squyres
On Oct 25, 2007, at 11:16 AM, Edgar Gabriel wrote: If you have the following scenario: - A spawns B, gets intercomm AB - A spawns C, gets intercomm AC (that does not include B) - ...repeat N times (e.g., to AN) well, how about the following for your example: - D = intercomm_merge (AB) - E =

Re: [OMPI users] Merging Intracommunicators

2007-10-25 Thread Edgar Gabriel
Jeff Squyres wrote: On Oct 25, 2007, at 12:11 AM, George Bosilca wrote: Now you cast a doubt on me. As far as I remember, there is a trick in MPI2 to do this. You can merge your inter-communicators into one intra-communicators with MPI_Intercomm_merge and then use MPI_Intercomm_create to s

Re: [OMPI users] Merging Intracommunicators

2007-10-25 Thread Jeff Squyres
On Oct 25, 2007, at 12:11 AM, George Bosilca wrote: Now you cast a doubt on me. As far as I remember, there is a trick in MPI2 to do this. You can merge your inter-communicators into one intra-communicators with MPI_Intercomm_merge and then use MPI_Intercomm_create to spawn a new inter-comm

Re: [OMPI users] Merging Intracommunicators

2007-10-25 Thread George Bosilca
Now you cast a doubt on me. As far as I remember, there is a trick in MPI2 to do this. You can merge your inter-communicators into one intra-communicators with MPI_Intercomm_merge and then use MPI_Intercomm_create to spawn a new inter-comm over the 2 childs world (using the common parent as

Re: [OMPI users] Merging Intracommunicators

2007-10-24 Thread Jeff Squyres
I believe that the second scenario that Sriram described is incorrect: you cannot merge independent intercommunicators into a single communicator (either intra or inter). On Oct 18, 2007, at 4:36 PM, Murat Knecht wrote: Hi, I have a question regarding merging intracommunicators. Using MPI_

[OMPI users] Merging Intracommunicators

2007-10-18 Thread Murat Knecht
Hi, I have a question regarding merging intracommunicators. Using MPI_Spawn, I create on designated machines child processes, retrieving an intercommunicator each time. With MPI_Intercomm_Merge it is possible to get an intracommunicator containing the master process(es) and the newly spawned child