|
| template<typename C > |
| C | mptensor::mpi::allreduce_sum (C val, const MPI_Comm &comm) |
| | Calculate a summation over MPI communicator.
|
| |
| template<typename C > |
| std::vector< C > | mptensor::mpi::allreduce_vec (const std::vector< C > &vec, const MPI_Comm &comm) |
| | Calculate a summation of each element of vector over MPI communicator.
|
| |
| template<typename C > |
| void | mptensor::mpi::allreduce (const C *sendbuf, C *recvbuf, int count, MPI_Op op, const MPI_Comm &comm) |
| | Wrapper of MPI_Allreduce.
|
| |
| template<typename C > |
| void | mptensor::mpi::sendrecv (const C *sendbuf, int sendcount, int dest, int sendtag, C *recvbuf, int recvcount, int source, int recvtag, const MPI_Comm &comm) |
| | Wrapper of MPI_Sendrecv.
|
| |
| template<typename C > |
| void | mptensor::mpi::sendrecv (const std::vector< C > &send_vec, int dest, int sendtag, std::vector< C > &recv_vec, int source, int recvtag, const MPI_Comm &comm) |
| | Wrapper of MPI_Sendrecv for std::vector.
|
| |
| template<typename C > |
| void | mptensor::mpi::alltoall (const C *sendbuf, int sendcount, C *recvbuf, int recvcount, const MPI_Comm &comm) |
| | Wrapper of MPI_Alltoall.
|
| |
| template<typename C > |
| void | mptensor::mpi::alltoallv (const C *sendbuf, const int *sendcounts, const int *sdispls, C *recvbuf, const int *recvcounts, const int *rdispls, const MPI_Comm &comm) |
| | Wrapper of MPI_Alltoallv.
|
| |
| template<typename C > |
| void | mptensor::mpi::bcast (C *buffer, int count, int root, const MPI_Comm &comm) |
| | Wrapper of MPI_Bcast.
|
| |
Wrapper functions of MPI communications.
- Author
- Satoshi Morita morit.nosp@m.a@is.nosp@m.sp.u-.nosp@m.toky.nosp@m.o.ac..nosp@m.jp
- Date
- Jun 2 2015
This header file assumes the MPI environment.