Class ingesting the output from a DomainNetMap and a frequency map json file and determining a recommended frequency decision.
More...
#include <RegionHintRecommender.hpp>
|
static std::unique_ptr< RegionHintRecommender > | make_unique (const std::string &fmap_path, int min_freq, int max_freq) |
| Returns a unique_ptr to a concrete object constructed using the underlying implementation, which loads a frequency map file into a std::map of region class string to double, and sets both min and max frequency recommendations. More...
|
|
static std::shared_ptr< RegionHintRecommender > | make_shared (const std::string &fmap_path, int min_freq, int max_freq) |
| Returns a shared_ptr to a concrete object constructed using the underlying implementation, which loads a frequency map file into a std::map of region class string to double, and sets both min and max frequency recommendations. More...
|
|
Class ingesting the output from a DomainNetMap and a frequency map json file and determining a recommended frequency decision.
◆ ~RegionHintRecommender()
virtual geopm::RegionHintRecommender::~RegionHintRecommender |
( |
| ) |
|
|
virtualdefault |
◆ make_shared()
std::shared_ptr< RegionHintRecommender > geopm::RegionHintRecommender::make_shared |
( |
const std::string & |
fmap_path, |
|
|
int |
min_freq, |
|
|
int |
max_freq |
|
) |
| |
|
static |
Returns a shared_ptr to a concrete object constructed using the underlying implementation, which loads a frequency map file into a std::map of region class string to double, and sets both min and max frequency recommendations.
- Parameters
-
[in] | fmap_path | string containing path to freq map json |
[in] | min_freq | integer containing minimum frequency |
[in] | max_freq | integer containing maximum frequency |
◆ make_unique()
std::unique_ptr< RegionHintRecommender > geopm::RegionHintRecommender::make_unique |
( |
const std::string & |
fmap_path, |
|
|
int |
min_freq, |
|
|
int |
max_freq |
|
) |
| |
|
static |
Returns a unique_ptr to a concrete object constructed using the underlying implementation, which loads a frequency map file into a std::map of region class string to double, and sets both min and max frequency recommendations.
- Parameters
-
[in] | fmap_path | string containing path to freq map json |
[in] | min_freq | integer containing minimum frequency |
[in] | max_freq | integer containing maximum frequency |
◆ recommend_frequency()
virtual double geopm::RegionHintRecommender::recommend_frequency |
( |
const std::map< std::string, double > & |
nn_output, |
|
|
double |
phi |
|
) |
| const |
|
pure virtual |
Recommends frequency based on the output from a DomainNetMap neural net evaluation.
- Parameters
-
[in] | nn_output | Output from the DomainNetMap neural net evaluation, as a map from trace names to doubles. |
[in] | phi | User-input perf-energy bias |
- Returns
- Returns frequency, double in Hertz
Implemented in geopm::RegionHintRecommenderImp.
The documentation for this class was generated from the following files: