39 std::copy(sendbuf, sendbuf + count, recvbuf);
46 std::copy(sendbuf, sendbuf + count, recvbuf);
int MPI_Reduce(const T *sendbuf, T *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm)
int MPI_Comm_rank(MPI_Comm comm, int *rank)
int MPI_Barrier(MPI_Comm comm)
static MPI_Comm MPI_COMM_WORLD
int MPI_Allreduce(const T *sendbuf, T *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
int MPI_Comm_size(MPI_Comm comm, int *size)
const MPI_Datatype MPI_LONG