geopm 3.2.1.dev535+ga96c120fc
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
geopm::SSTFrequencyLimitDetector Class Reference

#include <SSTFrequencyLimitDetector.hpp>

Inheritance diagram for geopm::SSTFrequencyLimitDetector:
Collaboration diagram for geopm::SSTFrequencyLimitDetector:

Public Member Functions

 SSTFrequencyLimitDetector (PlatformIO &platform_io, const PlatformTopo &platform_topo)
void update_max_frequency_estimates (const std::vector< double > &observed_core_frequencies) override
 Update the estimates for maximum achievable core frequencies.
std::vector< std::pair< unsigned int, double > > get_core_frequency_limits (unsigned int core_idx) const override
 Estimate the maximum achievable frequencies of a given core.
double get_core_low_priority_frequency (unsigned int core_idx) const override
 Estimate the low priority frequency of a given core.
Public Member Functions inherited from geopm::FrequencyLimitDetector
 FrequencyLimitDetector ()=default
virtual ~FrequencyLimitDetector ()=default

Additional Inherited Members

Static Public Member Functions inherited from geopm::FrequencyLimitDetector
static std::unique_ptr< FrequencyLimitDetector > make_unique (PlatformIO &platform_io, const PlatformTopo &platform_topo)
static std::shared_ptr< FrequencyLimitDetector > make_shared (PlatformIO &platform_io, const PlatformTopo &platform_topo)

Constructor & Destructor Documentation

◆ SSTFrequencyLimitDetector()

geopm::SSTFrequencyLimitDetector::SSTFrequencyLimitDetector ( PlatformIO & platform_io,
const PlatformTopo & platform_topo )

Member Function Documentation

◆ get_core_frequency_limits()

std::vector< std::pair< unsigned int, double > > geopm::SSTFrequencyLimitDetector::get_core_frequency_limits ( unsigned int core_idx) const
overridevirtual

Estimate the maximum achievable frequencies of a given core.

Parameters
[in]core_idxGEOPM topology index of the core to query.
Returns
A vector of alternative frequency configurations. Each vector element is a pair of a count of high-priority cores in the package, and this core's achievable frequency if that count is not exceeded.

Implements geopm::FrequencyLimitDetector.

◆ get_core_low_priority_frequency()

double geopm::SSTFrequencyLimitDetector::get_core_low_priority_frequency ( unsigned int core_idx) const
overridevirtual

Estimate the low priority frequency of a given core.

Implements geopm::FrequencyLimitDetector.

◆ update_max_frequency_estimates()

void geopm::SSTFrequencyLimitDetector::update_max_frequency_estimates ( const std::vector< double > & observed_core_frequencies)
overridevirtual

Update the estimates for maximum achievable core frequencies.

Caches the estimates to be queried by other functions in this interface.

Parameters
observed_core_frequenciesThe measured frequency for each core across a region of interest (e.g., epoch to epoch, across GEOPM regions, etc).

Implements geopm::FrequencyLimitDetector.


The documentation for this class was generated from the following files: