[MPICH] RE: a question about broadcast on intercommunicators

Jayesh Krishna jayesh at mcs.anl.gov
Fri Nov 9 11:29:51 CST 2007


Hi,
 As per the MPI-2 standard an MPI broadcast (MPI_Bcast()) on an
intercommunicator results in the sender broadcasting the data to all
processes in the remote group. So a simple MPI_Bcast() on the
intercommunicator returned by connect/accept should work for you.
 If you need to send the data to all processes belonging to group A as well
as group B you could create an intracommunicator from the intercommunicator
(returned by accept/connect) using MPI_Intercomm_merge() and do an MPI
broadcast on the intracommunicator.
 
Regards,
Jayesh

  _____  

From: menglige [mailto:menglige at gmail.com] 
Sent: Friday, November 09, 2007 1:40 AM
To: jayesh
Subject: a question about broadcast


Hi!
i want to broadcast from Rank 0 in group A to group B,and i have open a port
and a communicator named comm.How can i do it?
 
   Thank you ! Have a nice day!
--------------
menglige
2007-11-09
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20071109/8f39b3f3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 688 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20071109/8f39b3f3/attachment.gif>


More information about the mpich-discuss mailing list