MPI_Allreduce

--- Combines values from all processes and distribute the result back to all processes

Input Parameters

sendbuf
starting address of send buffer (choice)
count
number of elements in send buffer (integer)
datatype
data type of elements of send buffer (handle)
op
operation (handle)
comm
communicator (handle)

Output Parameter

recvbuf
starting address of receive buffer (choice)

Synopsis


#include "mpi.h"
int MPI_Allreduce ( sendbuf, recvbuf, count, datatype, op, comm )
void             *sendbuf;
void             *recvbuf;
int               count;
MPI_Datatype      datatype;
MPI_Op            op;
MPI_Comm          comm;

Location: allreduce.c