DASH
0.3.0
|
Hierarchical locality domains of a specified team. More...
#include <TeamLocality.h>
Public Member Functions | |
TeamLocality (dash::Team &team, Scope_t scope=Scope_t::Global, std::string domain_tag=".") | |
Constructor. More... | |
TeamLocality (dash::Team &team, LocalityDomain_t &domain) | |
Constructor. More... | |
TeamLocality ()=default | |
Default constructor. More... | |
TeamLocality (const self_t &other)=default | |
Copy constructor. More... | |
self_t & | operator= (const self_t &other)=default |
Assignment operator. More... | |
const LocalityDomain_t & | domain () const |
The team locality domain descriptor. More... | |
LocalityDomain_t & | domain () |
The team locality domain descriptor. More... | |
self_t & | split (Scope_t scope, int num_split_parts=0) |
Split the team locality domain into the given number of parts on the specified locality scope. More... | |
self_t & | split_groups () |
Split groups in locality domain into separate parts. More... | |
std::vector< LocalityDomain_t::iterator > & | groups () |
Parts of the team locality that resulted from a previous split. More... | |
const std::vector< LocalityDomain_t::iterator > & | groups () const |
Parts of the team locality that have been created in a previous split. More... | |
std::vector< LocalityDomain_t > & | parts () |
Parts of the team locality that resulted from a previous split. More... | |
const std::vector< LocalityDomain_t > & | parts () const |
Parts of the team locality that have been created in a previous split. More... | |
size_t | num_nodes () const |
size_t | num_cores () const |
dash::Team & | team () const |
const std::vector< global_unit_t > & | global_units () const |
dash::util::UnitLocality | unit_locality (team_unit_t unit_id) const |
dash::util::UnitLocality | unit_locality (global_unit_t unit_id) const |
LocalityDomain_t & | group (const std::vector< std::string > &group_subdomain_tags) |
self_t & | select (const std::vector< std::string > &domain_tags) |
self_t & | exclude (const std::vector< std::string > &domain_tags) |
Hierarchical locality domains of a specified team.
Usage examples:
Definition at line 61 of file TeamLocality.h.
dash::util::TeamLocality::TeamLocality | ( | dash::Team & | team, |
Scope_t | scope = Scope_t::Global , |
||
std::string | domain_tag = "." |
||
) |
Constructor.
Creates new instance of dash::util::TeamLocality
by loading the locality domain of a specified team.
dash::util::TeamLocality::TeamLocality | ( | dash::Team & | team, |
LocalityDomain_t & | domain | ||
) |
Constructor.
Creates new instance of dash::util::TeamLocality
for a specified team and locality domain.
|
default |
Default constructor.
|
default |
Copy constructor.
|
inline |
The team locality domain descriptor.
Definition at line 105 of file TeamLocality.h.
|
inline |
The team locality domain descriptor.
Definition at line 113 of file TeamLocality.h.
|
inline |
Parts of the team locality that resulted from a previous split.
Definition at line 154 of file TeamLocality.h.
|
inline |
Parts of the team locality that have been created in a previous split.
Definition at line 162 of file TeamLocality.h.
|
inline |
Parts of the team locality that resulted from a previous split.
Definition at line 170 of file TeamLocality.h.
|
inline |
Parts of the team locality that have been created in a previous split.
Definition at line 178 of file TeamLocality.h.
References dash::Team::dart_id(), dart_team_unit_g2l(), dash::util::LocalityDomain::exclude(), dash::util::LocalityDomain::group(), dash::Team::Null(), and dash::util::LocalityDomain::select().
|
inline |
Split the team locality domain into the given number of parts on the specified locality scope.
Team locality domains resulting from the split can be accessed using method parts()
.
Definition at line 136 of file TeamLocality.h.
References dash::util::LocalityDomain::split().
|
inline |
Split groups in locality domain into separate parts.
Definition at line 145 of file TeamLocality.h.
References dash::util::LocalityDomain::split_groups().