Main message-passing functions
- Scatter
-
partition the data into smaller pieces and send them to the different processes
- Gather
-
collect the data from the different processes and merge them.
- Broadcast
-
Send the same data to all the processes.
- Reduce
-
Merge the data from all the processes and produce a single result.