#include <PlatformTopoImp.hpp>
|
| PlatformTopoImp () |
|
| PlatformTopoImp (const std::string &test_cache_file_name, std::shared_ptr< ServiceProxy > service_proxy) |
|
virtual | ~PlatformTopoImp ()=default |
|
int | num_domain (int domain_type) const override |
| Number of domains on the platform of a particular geopm_domain_e type. More...
|
|
int | domain_idx (int domain_type, int cpu_idx) const override |
| Get the domain index for a particular domain type that contains the given Linux logical CPU index. More...
|
|
bool | is_nested_domain (int inner_domain, int outer_domain) const override |
| Check if one domain type is contained in another. More...
|
|
std::set< int > | domain_nested (int inner_domain, int outer_domain, int outer_idx) const override |
| Get the set of smaller domains contained in a larger one. If the inner domain is not the same as or contained within the outer domain, it throws an error. More...
|
|
| PlatformTopo ()=default |
|
virtual | ~PlatformTopo ()=default |
|
◆ PlatformTopoImp() [1/2]
geopm::PlatformTopoImp::PlatformTopoImp |
( |
| ) |
|
◆ PlatformTopoImp() [2/2]
geopm::PlatformTopoImp::PlatformTopoImp |
( |
const std::string & |
test_cache_file_name, |
|
|
std::shared_ptr< ServiceProxy > |
service_proxy |
|
) |
| |
◆ ~PlatformTopoImp()
virtual geopm::PlatformTopoImp::~PlatformTopoImp |
( |
| ) |
|
|
virtualdefault |
◆ create_cache() [1/3]
void geopm::PlatformTopoImp::create_cache |
( |
void |
| ) |
|
|
static |
◆ create_cache() [2/3]
void geopm::PlatformTopoImp::create_cache |
( |
const std::string & |
cache_file_name | ) |
|
|
static |
◆ create_cache() [3/3]
void geopm::PlatformTopoImp::create_cache |
( |
const std::string & |
cache_file_name, |
|
|
const GPUTopo & |
gtopo |
|
) |
| |
|
static |
◆ domain_idx()
int geopm::PlatformTopoImp::domain_idx |
( |
int |
domain_type, |
|
|
int |
cpu_idx |
|
) |
| const |
|
overridevirtual |
Get the domain index for a particular domain type that contains the given Linux logical CPU index.
- Todo:
- Add support for package memory NIC and package GPUs to domain_idx() method.
Implements geopm::PlatformTopo.
◆ domain_nested()
std::set< int > geopm::PlatformTopoImp::domain_nested |
( |
int |
inner_domain, |
|
|
int |
outer_domain, |
|
|
int |
outer_idx |
|
) |
| const |
|
overridevirtual |
Get the set of smaller domains contained in a larger one. If the inner domain is not the same as or contained within the outer domain, it throws an error.
- Parameters
-
[in] | inner_domain | The contained domain type. |
[in] | outer_domain | The containing domain type. |
[in] | outer_idx | The containing domain index. |
- Returns
- The set of domain indices for the inner domain that are within the indexed outer domain.
Implements geopm::PlatformTopo.
◆ is_nested_domain()
bool geopm::PlatformTopoImp::is_nested_domain |
( |
int |
inner_domain, |
|
|
int |
outer_domain |
|
) |
| const |
|
overridevirtual |
Check if one domain type is contained in another.
- Parameters
-
[in] | inner_domain | The contained domain type. |
[in] | outer_domain | The containing domain type. |
- Returns
- True if the inner_domain is contained within the outer_domain.
Implements geopm::PlatformTopo.
◆ num_domain()
int geopm::PlatformTopoImp::num_domain |
( |
int |
domain_type | ) |
const |
|
overridevirtual |
Number of domains on the platform of a particular geopm_domain_e type.
Implements geopm::PlatformTopo.
The documentation for this class was generated from the following files: