MPI_Bcast() sends the same piece of data to everyone, and MPI_Scatter() sends each process a portion of the input array. MPI_Bcast() opposite of MPI_Reduce() , and MPI_Scatter() is the opposite of MPI_Gather() . A small circuit, such as this one , requires no explanation.
And both MPI_Scatter() and MPI_Bcast() have an argument named int root to indicate the root process.
source share