geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
ScalingModelRegion.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 SCALINGMODELREGION_HPP_INCLUDE
7 #define SCALINGMODELREGION_HPP_INCLUDE
8 
9 #include <vector>
10 #include <string>
11 #include <cstdint>
12 #include "geopm/ModelRegion.hpp"
13 
14 namespace geopm
15 {
17  {
18  public:
19  ScalingModelRegion(double big_o_in,
20  int verbosity,
21  bool do_imbalance,
22  bool do_progress,
23  bool do_unmarked);
24  virtual ~ScalingModelRegion();
25  ScalingModelRegion(const ScalingModelRegion &other) = delete;
27  void big_o(double big_o);
28  void run(void);
29  void run_atom(void);
30  protected:
31  size_t llc_size(void);
32 
33  std::string m_sysfs_cache_dir;
37  size_t m_array_len;
38  size_t m_num_atom;
39  std::vector<double *> m_arrays;
40  };
41 }
42 
43 #endif
Definition: ModelRegion.hpp:18
double big_o(void)
Definition: ModelRegion.cpp:113
Definition: ScalingModelRegion.hpp:17
std::vector< double * > m_arrays
Definition: ScalingModelRegion.hpp:39
void run_atom(void)
Definition: ScalingModelRegion.cpp:105
size_t m_llc_slop_size
Definition: ScalingModelRegion.hpp:34
size_t m_element_size
Definition: ScalingModelRegion.hpp:35
virtual ~ScalingModelRegion()
Definition: ScalingModelRegion.cpp:60
void run(void)
Definition: ScalingModelRegion.cpp:149
size_t m_rank_per_node
Definition: ScalingModelRegion.hpp:36
ScalingModelRegion(double big_o_in, int verbosity, bool do_imbalance, bool do_progress, bool do_unmarked)
Definition: ScalingModelRegion.cpp:24
size_t m_num_atom
Definition: ScalingModelRegion.hpp:38
ScalingModelRegion & operator=(const ScalingModelRegion &other)=delete
size_t llc_size(void)
Definition: ScalingModelRegion.cpp:67
std::string m_sysfs_cache_dir
Definition: ScalingModelRegion.hpp:33
ScalingModelRegion(const ScalingModelRegion &other)=delete
size_t m_array_len
Definition: ScalingModelRegion.hpp:37
Definition: Accumulator.cpp:12