LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Vinod Kannan (saranga2000_at_[hidden])
Date: 2004-10-07 01:17:48


Hi,
 I want a single parent process to spawn off say 4
child processes (preferably using spawn and not
spawn_multiple). I then want the child processes to be
communicate with each other using an individual
communicator for each pair of children. Say process
parent spawns of child1, child2, child3. I want
child1 to be able to communicate with child2 using an
intercommunicator (or an intracommunicator with only
child1 and child2 as members) and similarly
child2<->child3 and child3<->child1.
 From what I understand of Communicators, I can use
Spawn_multiple to create the children and then use
Intercomm_create passing COMM_SELF & COMM_WORLD with
peer group leaders rank as the one who I want to
communicate with. Am I correct? Is there a more
elegant and insulated way than using Spawn_multiple?
 Thanks for any guidance.
New Lam User

=====
Vinod Kannan
saranga2000_at_[hidden]
http://kannvin.freeshell.org

                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com