Predefined Reduce Operations



next up previous contents
Next: MINLOC and MAXLOC Up: Global Reduction Operations Previous: Reduce

Predefined Reduce Operations

 

The following predefined operations are supplied for MPI_REDUCE and related functions MPI_ALLREDUCE, MPI_REDUCE_SCATTER, and MPI_SCAN. These operations are invoked by placing the following in op.

reduce, list of operations MPI_MAX MPI_MIN MPI_SUM MPI_PROD MPI_LAND MPI_BAND MPI_LOR MPI_BOR MPI_BXOR MPI_MAXLOC MPI_MINLOC MPI_LXOR

The two operations MPI_MINLOC and MPI_MAXLOC are discussed separately in Section gif. For the other predefined operations, we enumerate below the allowed combinations of op and datatype arguments. First, define groups of MPI basic datatypes in the following way.




Jack Dongarra
Fri Sep 1 06:16:55 EDT 1995