7.7.1. Example using MPI_ALLGATHER

PreviousUpNext
Up: Gather-to-all Next: All-to-All Scatter/Gather Previous: Gather-to-all

The example in this section uses intra-communicators.


Example The all-gather version of Example Examples using MPI_GATHER, MPI_GATHERV. Using MPI_ALLGATHER, we will gather 100 ints from every MPI process in the group to every MPI process.

Image file

After the call, every MPI process has the group-wide concatenation of the sets of data.


PreviousUpNext
Up: Gather-to-all Next: All-to-All Scatter/Gather Previous: Gather-to-all


Return to MPI-4.1 Standard Index
Return to MPI Forum Home Page

(Unofficial) MPI-4.1 of November 2, 2023
HTML Generated on November 19, 2023