geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
RegionHintRecommenderImp.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2024 Intel Corporation
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef REGIONHINTRECOMMENDERIMP_HPP_INCLUDE
7 #define REGIONHINTRECOMMENDERIMP_HPP_INCLUDE
8 
10 
11 namespace geopm
12 {
17  {
18  public:
19  RegionHintRecommenderImp(const std::string &fmap_path, int min_freq, int max_freq);
27  double recommend_frequency(const std::map<std::string, double> &nn_output, double phi)
28  const override;
29 
30  private:
31  int m_min_freq;
32  int m_max_freq;
33  std::map<std::string, std::vector<double> > m_freq_map;
34  };
35 }
36 
37 
38 #endif /* REGIONHINTRECOMMENDERIMP_HPP_INCLUDE */
Class ingesting the output from a DomainNetMap and a frequency map json file and determining a recomm...
Definition: RegionHintRecommender.hpp:20
Class ingesting region classification logits and a frequency map json file and determining a recommen...
Definition: RegionHintRecommenderImp.hpp:17
RegionHintRecommenderImp(const std::string &fmap_path, int min_freq, int max_freq)
Definition: RegionHintRecommender.cpp:36
double recommend_frequency(const std::map< std::string, double > &nn_output, double phi) const override
Recommends frequency based on region classification logits.
Definition: RegionHintRecommender.cpp:99
Definition: Accumulator.cpp:12