#include <gmpi.hpp>
Public Member Functions | |
Comm (const MPI::Intracomm &mpi_comm) | |
MPI::Intracomm & | mpi_comm_ref () |
const MPI::Intracomm & | mpi_comm_ref () const |
template<typename Comm_ref_t> | |
void | Send (const Comm_ref_t &data, int dest, int tag) const |
Send data to dest marked with tag . | |
template<typename Comm_ref_t> | |
void | Recv (Comm_ref_t &data, int source, int tag, MPI::Status &status) const |
int | Get_size () const |
int | Get_rank () const |
Protected Attributes | |
MPI::Intracomm | my_comm |
Definition at line 240 of file gmpi.hpp.
GMPI::Comm::Comm | ( | const MPI::Intracomm & | mpi_comm | ) | [inline] |
MPI::Intracomm& GMPI::Comm::mpi_comm_ref | ( | ) | [inline] |
const MPI::Intracomm& GMPI::Comm::mpi_comm_ref | ( | ) | const [inline] |
void GMPI::Comm::Send | ( | const Comm_ref_t & | data, | |
int | dest, | |||
int | tag | |||
) | const [inline] |
Send data
to dest
marked with tag
.
Definition at line 6 of file gmpi_impl.hpp.
References GMPI::buffer_t< Base_t >::address(), GMPI::buffer_t< Base_t >::mpi_t, my_comm, and GMPI::buffer_t< Base_t >::size().
void GMPI::Comm::Recv | ( | Comm_ref_t & | data, | |
int | source, | |||
int | tag, | |||
MPI::Status & | status | |||
) | const [inline] |
Definition at line 16 of file gmpi_impl.hpp.
References GMPI::buffer_t< Base_t >::address(), GMPI::buffer_t< Base_t >::mpi_t, my_comm, and GMPI::buffer_t< Base_t >::reserve().
int GMPI::Comm::Get_size | ( | ) | const [inline] |
int GMPI::Comm::Get_rank | ( | ) | const [inline] |
Definition at line 258 of file gmpi.hpp.
References my_comm.
Referenced by GMPI::Intracomm::Bcast().
MPI::Intracomm GMPI::Comm::my_comm [protected] |
Definition at line 242 of file gmpi.hpp.
Referenced by GMPI::Intracomm::Allreduce(), GMPI::Intracomm::Barrier(), GMPI::Intracomm::Bcast(), GMPI::Intracomm::Gather(), Get_rank(), Get_size(), mpi_comm_ref(), Recv(), and Send().