MPI_Reduce_scatter
--- Combines values and scatters the results
Input Parameters
- sendbuf
- starting address of send buffer (choice)
- recvcounts
- integer array specifying the
number of elements in result distributed to each process.
Array must be identical on all calling processes.
- datatype
- data type of elements of input buffer (handle)
- op
- operation (handle)
- comm
- communicator (handle)
Output Parameter
- recvbuf
- starting address of receive buffer (choice)
Synopsis
#include "mpi.h"
int MPI_Reduce_scatter ( sendbuf, recvbuf, recvcnts, datatype, op, comm )
void *sendbuf;
void *recvbuf;
int *recvcnts;
MPI_Datatype datatype;
MPI_Op op;
MPI_Comm comm;
Location: red_scat.c