![]() |
Home | Libraries | People | FAQ | More |
boost::mpi::gather — Gather the values stored at every process into a vector at the root process.
// In header: <boost/mpi/collectives.hpp> template<typename T> (communicator & comm, in_value, out_values, root); template<typename T> (communicator & comm, in_value, out_values, root); template<typename T> (communicator & comm, in_value, root); template<typename T> (communicator & comm, in_values, n, out_values, root); template<typename T> (communicator & comm, in_values, n, out_values, root); template<typename T> (communicator & comm, in_values, n, root);
gather
is a collective algorithm that collects the values stored at each process into a vector of values at the root
process. This vector is indexed by the process number that the value 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_Gather
to gather the values.
Parameters: |
|