angel
mercurial changeset:
|
#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 |
GMPI::Comm::Comm | ( | const MPI::Intracomm & | mpi_comm | ) | [inline] |
int GMPI::Comm::Get_rank | ( | ) | const [inline] |
Definition at line 266 of file gmpi.hpp.
References my_comm.
Referenced by GMPI::Intracomm::Bcast().
int GMPI::Comm::Get_size | ( | ) | const [inline] |
MPI::Intracomm& GMPI::Comm::mpi_comm_ref | ( | ) | [inline] |
const MPI::Intracomm& GMPI::Comm::mpi_comm_ref | ( | ) | const [inline] |
void GMPI::Comm::Recv | ( | Comm_ref_t & | data, |
int | source, | ||
int | tag, | ||
MPI::Status & | status | ||
) | const |
Definition at line 24 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().
void GMPI::Comm::Send | ( | const Comm_ref_t & | data, |
int | dest, | ||
int | tag | ||
) | const |
Send data
to dest
marked with tag
.
Definition at line 14 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().
MPI::Intracomm GMPI::Comm::my_comm [protected] |
Definition at line 250 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().