45 #ifndef SC_REDUCE_ALLTOALL_LEVEL
47 #define SC_REDUCE_ALLTOALL_LEVEL 3
113 int sc_reduce (
void *sendbuf,
void *recvbuf,
int sendcount,
Support for process management (memory allocation, logging, etc.)
sc3_MPI_Datatype_t sc_MPI_Datatype
Emulate MPI datatypes.
Definition: sc_mpi.h:452
sc3_MPI_Comm_t sc_MPI_Comm
Emulate an MPI communicator.
Definition: sc_mpi.h:450
sc3_MPI_Op_t sc_MPI_Op
Emulate MPI operations.
Definition: sc_mpi.h:453
int sc_reduce_custom(void *sendbuf, void *recvbuf, int sendcount, sc_MPI_Datatype sendtype, sc_reduce_t reduce_fn, int target, sc_MPI_Comm mpicomm)
Custom reduce operation with reproducible associativity.
int sc_reduce(void *sendbuf, void *recvbuf, int sendcount, sc_MPI_Datatype sendtype, sc_MPI_Op operation, int target, sc_MPI_Comm mpicomm)
Drop-in MPI_Reduce replacement with reproducible associativity.
int sc_allreduce(void *sendbuf, void *recvbuf, int sendcount, sc_MPI_Datatype sendtype, sc_MPI_Op operation, sc_MPI_Comm mpicomm)
Drop-in MPI_Allreduce replacement with reproducible associativity.
int sc_allreduce_custom(void *sendbuf, void *recvbuf, int sendcount, sc_MPI_Datatype sendtype, sc_reduce_t reduce_fn, sc_MPI_Comm mpicomm)
Custom allreduce operation with reproducible associativity.
void(* sc_reduce_t)(void *sendbuf, void *recvbuf, int sendcount, sc_MPI_Datatype sendtype)
Prototype for a user-defined reduce operation.
Definition: sc_reduce.h:53