14.2.1. Examples
![Previous](previous.gif)
![Up](up.gif)
![Next](next.gif)
Up: Generalized Requests
Next: Associating Information with Status
Previous: Generalized Requests
Example
This example shows the code for a user-defined reduce operation on an
int using
a binary tree: each nonroot node receives two messages, sums them,
and sends them up. We assume that no status is returned and that the
operation cannot be cancelled.
![Image file](img403.gif)
![Previous](previous.gif)
![Up](up.gif)
![Next](next.gif)
Up: Generalized Requests
Next: Associating Information with Status
Previous: Generalized Requests
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