Global Reduction Operations
- Used to compute a result involving data distributed over a group
of processes.
- Examples:
- global sum or product
- global maximum or minimum
- global user-defined operation
C:
int MPI_Reduce(void *inbuf, void *outbuf, int count,
MPI_Datatype datatype, MPI_Op op,
int root, MPI_Comm comm);
Fortran:
subroutine MPI_Reduce (inbuf, outbuf, count, datatype,
op, root, comm, ierror)
<type> inbuf(*), outbuf(*)
integer count, datatype, op, root, comm, ierror
|