Home | Libraries | People | FAQ | More |
boost::mpi::all_gather — Gather the values stored at every process into vectors of values from each process.
// In header: <boost/mpi/collectives.hpp> template<typename T> void all_gather(const communicator & comm, const T & in_value, std::vector< T > & out_values); template<typename T> void all_gather(const communicator & comm, const T & in_value, T * out_values); template<typename T> void all_gather(const communicator & comm, const T * in_values, int n, std::vector< T > & out_values); template<typename T> void all_gather(const communicator & comm, const T * in_values, int n, T * out_values);
all_gather
is a collective algorithm that collects the values stored at each process into a vector of values indexed by the process number they came from. The type T
of the values may be any type that is serializable or has an associated MPI data type.
When the type T
has an associated MPI data type, this routine invokes MPI_Allgather
to gather the values.
Parameters: |
|