next up previous contents
Next: Alltoall Up: Collectives Previous: Allgather

Allreduce

int MPI_Allreduce(void *sbuf, void *rbuf, int count, MPI_Datatype dtype, 
                  MPI_op op, MPI_Comm comm)
{
  MPI_Reduce(sbuf, rbuf, count, dtype, op, 0, comm);
  MPI_Bcast(rbuf, count, dtype, 0, comm);
  return(MPI_SUCCESS);
}



IMPI Protocol ver 0.0
DRAFT March 22, 1999