Collective Communication I

2.3 Data Movement
  • Broadcast

  • Gather and Gatherv

  • Scatter and Scatterv

  • Allgather and Allgatherv

  • Alltoall and Alltoallv
MPI provides three types of collective data movement routines. They are broadcast, gather, and scatter. There are also allgather and alltoall routines. The gather, scatter, allgather, and alltoall routines have variable data versions. For their variable data versions, each process can send and/or receive a different number of elements. The list of MPI collective data movement routines are:
  • broadcast
  • gather, gatherv
  • scatter, scatterv
  • allgather, allgatherv
  • alltoall, alltoallv

Now, let's take a look at the functionality and syntax of these routines.