KaMPIng 0.1.0
(Near) zero-overhead C++ MPI bindings.
|
Encapsulates the rank of a PE. This is needed for p2p communication and rooted MPI
collectives like MPI_Gather
.
More...
#include <parameter_objects.hpp>
Public Member Functions | |
int | rank_signed () const |
Returns the rank as int . | |
RankDataBuffer< rank_type, parameter_type > | clone () |
Get a copy of this RankDataBuffer. | |
Static Public Attributes | |
static constexpr ParameterType | parameter_type = type |
The type of parameter this object encapsulates. | |
static constexpr RankType | rank_type = RankType::any |
The rank type. | |
Encapsulates the rank of a PE. This is needed for p2p communication and rooted MPI
collectives like MPI_Gather
.
This is a specialization for MPI_ANY_SOURCE which only implements rank_signed(), without allocating any additional memory.
|
inline |
Get a copy of this RankDataBuffer.
|
inline |
Returns the rank as int
.
int
.