mptensor  v0.3.0
Parallel Library for Tensor Network Methods
mpi_wrapper.hpp File Reference

Wrapper functions of MPI communications. More...

#include <mpi.h>
#include <vector>

Go to the source code of this file.

Namespaces

 mptensor
 
 mptensor::mpi_wrapper
 Wrappers of MPI library.
 

Functions

template<typename C >
mptensor::mpi_wrapper::allreduce_sum (C val, const MPI_Comm &comm)
 Calculate a summation over MPI communicator. More...
 
template<typename C >
std::vector< C > mptensor::mpi_wrapper::allreduce_vec (const std::vector< C > &vec, const MPI_Comm &comm)
 Calculate a summation of each element of vector over MPI communicator. More...
 
template<typename C >
void mptensor::mpi_wrapper::send_recv_vector (const std::vector< C > &send_vec, int dest, int sendtag, std::vector< C > &recv_vec, int source, int recvtag, const MPI_Comm &comm, MPI_Status &status)
 Wrapper of MPI_Sendrecv. More...
 
template<typename C >
void mptensor::mpi_wrapper::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. More...
 
template<typename C >
void mptensor::mpi_wrapper::bcast (C *buffer, int count, int root, const MPI_Comm &comm)
 Wrapper of MPI_Bcast. More...
 

Detailed Description

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