7.4.1. Example using MPI_BCAST

PreviousUpNext
Up: Broadcast Next: Gather Previous: Broadcast

The examples in this section use intra-communicators.


Example Broadcast 100 ints from MPI process 0 to every MPI process in the group.

Image file

As in many of our example code fragments, we assume that some of the variables (such as comm in the above) have been assigned appropriate values.


PreviousUpNext
Up: Broadcast Next: Gather Previous: Broadcast


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