Home | Libraries | People | FAQ | More |
boost::mpi::broadcast — Broadcast a value from a root process to all other processes.
// In header: <boost/mpi/collectives.hpp> template<typename T> void broadcast(const communicator & comm, T & value, int root); template<typename T> void broadcast(const communicator & comm, T * values, int n, int root); template<typename T> void broadcast(const communicator & comm, skeleton_proxy< T > & value, int root); template<typename T> void broadcast(const communicator & comm, const skeleton_proxy< T > & value, int root);
broadcast
is a collective algorithm that transfers a value from an arbitrary root
process to every other process that is part of the given communicator. The broadcast
algorithm can transmit any Serializable value, values that have associated MPI data types, packed archives, skeletons, and the content of skeletons; see the send
primitive for communicators for a complete list. The type T
shall be the same for all processes that are a part of the communicator comm
, unless packed archives are being transferred: with packed archives, the root sends a
or packed_oarchive
whereas the other processes receive a packed_skeleton_oarchive
or packed_iarchive
packed_skeleton_iarchve
, respectively.
When the type T
has an associated MPI data type, this routine invokes MPI_Bcast
to perform the broadcast.
Parameters: |
|