Next:
Reduction
Up:
Collective Communication and Computation
Previous:
Collective Communication and Computation
Contents
Broadcast
Broadcast;
the
one-to-all
broadcast operation is performed in MPI using the
MPI_Bcast
function.
int MPI_Bcast(void *buf, int count, MPI_Datatype datatype, int source, MPI_Comm comm)
MPI_Bcast
sends the data stored in the buffer
buf
of process
source
to all the other processes in the group.
The data that is broadcast consist of
count
entries of type
datatype
.
The data received by each process is stored in the buffer
buf
.
Since the operations are virtually synchronous, they
do not require tags
.
Figure 5.1:
Diagram for Broadcast.
Cem Ozdogan 2010-12-27