MPI_Reduce_scatter - Combines values and scatters the
results
SYNOPSIS
C:
#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;
C++:
#include <mpi.h>
void Intracomm::Reduce_scatter(
const void* sendbuf,
void* recvbuf,
int recvcounts[],
const Datatype& datatype,
const Op& op) const
Fortran:
INCLUDE "mpif.h" (or USE MPI)
<type> SENDBUF(*), RECVBUF(*)
INTEGER recvcounts(*), datatype, op, comm, ierror
CALL MPI_REDUCE_SCATTER(sendbuf, recvbuf, recvcounts(*), datatype, op, comm, ierror)
STANDARDS
This release implements the MPI 1.2 standard, as
documented by the MPI Forum in the spring 1997 release of
MPI: A Message Passing Interface Standard.
DESCRIPTION
The MPI_Reduce_scatter routine combines values and
scatters the results. This routine accepts the following
parameters:
sendbuf Specifies the starting address of the send
buffer (choice)
the number of elements in the result that
is distributed to each process. The array
must be identical on all calling processes.
datatype Specifies the data type of elements of the
input buffer (handle)
op Specifies the operation (handle)
comm Specifies the communicator (handle)
recvbuf Returns the starting address of the receive
buffer (choice)
ierror Specifies the return code value for
successful completion, which is in
MPI_SUCCESS. MPI_SUCCESS is defined in the
mpif.h file.
Man(1) output converted with
man2html