| 1 | = MPI_Reduce = |
| 2 | Reduces values on all processes to a single value |
| 3 | |
| 4 | = Synopsis = |
| 5 | {{{ |
| 6 | #include "mpi.h" |
| 7 | int MPI_Reduce ( void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm ) |
| 8 | }}} |
| 9 | |
| 10 | = Input Parameters = |
| 11 | {{{ |
| 12 | sendbuf address of send buffer (choice) |
| 13 | count number of elements in send buffer (integer) |
| 14 | datatype data type of elements of send buffer (handle) |
| 15 | op reduce operation (handle) |
| 16 | root rank of root process (integer) |
| 17 | comm communicator (handle) |
| 18 | }}} |
| 19 | |
| 20 | = Output Parameter = |
| 21 | {{{ |
| 22 | recvbuf address of receive buffer (choice, significant only at root) |
| 23 | }}} |