geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
Public Member Functions | List of all members
geopm::RegionHintRecommenderImp Class Reference

Class ingesting region classification logits and a frequency map json file and determining a recommended frequency decision. More...

#include <RegionHintRecommenderImp.hpp>

Inheritance diagram for geopm::RegionHintRecommenderImp:
Inheritance graph
[legend]
Collaboration diagram for geopm::RegionHintRecommenderImp:
Collaboration graph
[legend]

Public Member Functions

 RegionHintRecommenderImp (const std::string &fmap_path, int min_freq, int max_freq)
 
double recommend_frequency (const std::map< std::string, double > &nn_output, double phi) const override
 Recommends frequency based on region classification logits. More...
 
- Public Member Functions inherited from geopm::RegionHintRecommender
virtual ~RegionHintRecommender ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from geopm::RegionHintRecommender
static std::unique_ptr< RegionHintRecommendermake_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< RegionHintRecommendermake_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...
 

Detailed Description

Class ingesting region classification logits and a frequency map json file and determining a recommended frequency decision.

Constructor & Destructor Documentation

◆ RegionHintRecommenderImp()

geopm::RegionHintRecommenderImp::RegionHintRecommenderImp ( const std::string &  fmap_path,
int  min_freq,
int  max_freq 
)

Member Function Documentation

◆ recommend_frequency()

double geopm::RegionHintRecommenderImp::recommend_frequency ( const std::map< std::string, double > &  nn_output,
double  phi 
) const
overridevirtual

Recommends frequency based on region classification logits.

Parameters
[in]nn_outputList of region classification names and logits output from region class neural net
[in]phiUser-input perf-energy bias
Returns
Returns a frequency, double in Hertz

Implements geopm::RegionHintRecommender.


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