6 #ifndef EPOCHIOGROUP_HPP_INCLUDE
7 #define EPOCHIOGROUP_HPP_INCLUDE
11 #include "geopm/IOGroup.hpp"
16 class ApplicationSampler;
31 int push_signal(
const std::string &signal_name,
int domain_type,
int domain_idx)
override;
32 int push_control(
const std::string &control_name,
int domain_type,
int domain_idx)
override;
35 double sample(
int batch_idx)
override;
36 void adjust(
int batch_idx,
double setting)
override;
37 double read_signal(
const std::string &signal_name,
int domain_type,
int domain_idx)
override;
38 void write_control(
const std::string &control_name,
int domain_type,
int domain_idx,
double setting)
override;
41 std::function<double(
const std::vector<double> &)>
agg_function(
const std::string &signal_name)
const override;
42 std::function<std::string(
double)>
format_function(
const std::string &signal_name)
const override;
46 void save_control(
const std::string &save_path)
override;
48 std::string
name(
void)
const override;
52 static const std::set<std::string> m_valid_signal_name;
53 void check_domain(
int domain_type,
int domain_idx)
const;
54 void check_signal_name(
const std::string &signal_name)
const;
56 const PlatformTopo &m_topo;
59 std::vector<double> m_per_cpu_count;
61 std::map<int, int> m_cpu_signal_map;
62 std::vector<int> m_active_signal;
Definition: ApplicationSampler.hpp:27
Definition: EpochIOGroup.hpp:19
int push_control(const std::string &control_name, int domain_type, int domain_idx) override
Definition: EpochIOGroup.cpp:105
std::set< std::string > control_names(void) const override
Definition: EpochIOGroup.cpp:49
void write_batch(void) override
Definition: EpochIOGroup.cpp:136
int signal_behavior(const std::string &signal_name) const override
Definition: EpochIOGroup.cpp:240
void write_control(const std::string &control_name, int domain_type, int domain_idx, double setting) override
Definition: EpochIOGroup.cpp:173
int push_signal(const std::string &signal_name, int domain_type, int domain_idx) override
Definition: EpochIOGroup.cpp:78
double read_signal(const std::string &signal_name, int domain_type, int domain_idx) override
Definition: EpochIOGroup.cpp:167
virtual ~EpochIOGroup()=default
std::function< std::string(double)> format_function(const std::string &signal_name) const override
Definition: EpochIOGroup.cpp:214
int control_domain_type(const std::string &control_name) const override
Definition: EpochIOGroup.cpp:73
std::function< double(const std::vector< double > &)> agg_function(const std::string &signal_name) const override
Definition: EpochIOGroup.cpp:204
void restore_control(void) override
Definition: EpochIOGroup.cpp:184
bool is_valid_signal(const std::string &signal_name) const override
Definition: EpochIOGroup.cpp:54
EpochIOGroup()
Definition: EpochIOGroup.cpp:26
static std::string plugin_name(void)
Definition: EpochIOGroup.cpp:194
double sample(int batch_idx) override
Definition: EpochIOGroup.cpp:141
int signal_domain_type(const std::string &signal_name) const override
Definition: EpochIOGroup.cpp:64
void adjust(int batch_idx, double setting) override
Definition: EpochIOGroup.cpp:161
static std::unique_ptr< IOGroup > make_plugin(void)
Definition: EpochIOGroup.cpp:199
void read_batch(void) override
Definition: EpochIOGroup.cpp:111
std::string control_description(const std::string &control_name) const override
Definition: EpochIOGroup.cpp:234
std::string name(void) const override
Definition: EpochIOGroup.cpp:189
std::string signal_description(const std::string &signal_name) const override
Definition: EpochIOGroup.cpp:224
std::set< std::string > signal_names(void) const override
Definition: EpochIOGroup.cpp:44
void save_control(void) override
Definition: EpochIOGroup.cpp:179
bool is_valid_control(const std::string &control_name) const override
Definition: EpochIOGroup.cpp:59
Definition: Accumulator.cpp:12