KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
|
A group of MPI processes. More...
#include <group.hpp>
Public Member Functions | |
Group (MPI_Group group, bool owning=false) | |
Constructs a new group from an existing MPI group. | |
Group (Group const &)=delete | |
Group | operator= (Group const &)=delete |
Group (Group &&other) | |
Move constructor. | |
Group & | operator= (Group &&other) |
Move assignment. | |
template<typename Comm > | |
Group (Comm const &comm) | |
Constructs the group associated with a communicator. | |
~Group () | |
Default destructor, freeing the encapsulated group if owned. | |
GroupEquality | compare (Group const &other) const |
Compare two groups. | |
bool | is_identical (Group const &other) const |
Compare two groups. | |
bool | is_similar (Group const &other) const |
Compare two groups. | |
bool | has_same_ranks (Group const &other) const |
Compare two groups. | |
Group | difference (Group const &other) const |
Makes a group from the difference of two groups. | |
Group | intersection (Group const &other) const |
Makes a group from the intersection of two groups. | |
Group | set_union (Group const &other) const |
Makes a group from the union of two groups. | |
size_t | size () const |
Get the number of ranks in the group. | |
size_t | rank () const |
Get the rank of the calling process in the group. | |
Static Public Member Functions | |
static Group | empty () |
Constructs an empty group. | |
A group of MPI processes.
|
inline |
Compare two groups.
other | The group to compare with. |
Makes a group from the difference of two groups.
other | The other group. |
Constructs an empty group.
Compare two groups.
other | The group to compare with. |
Makes a group from the intersection of two groups.
other | The other group. |
Compare two groups.
other | The group to compare with. |
Compare two groups.
other | The group to compare with. |
|
inline |
Get the rank of the calling process in the group.
Makes a group from the union of two groups.
other | The other group. |
union
.
|
inline |
Get the number of ranks in the group.