geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
ReduceModelRegion.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 REDUCEMODELREGION_HPP_INCLUDE
7 #define REDUCEMODELREGION_HPP_INCLUDE
8 
9 #include "geopm/ModelRegion.hpp"
10 
11 #include <vector>
12 
13 namespace geopm
14 {
16  {
17  public:
18  ReduceModelRegion(double big_o_in,
19  int verbosity,
20  bool do_imbalance,
21  bool do_progress,
22  bool do_unmarked);
23  virtual ~ReduceModelRegion() = default;
24  void big_o(double big_o);
25  void run(void);
26  private:
27  int m_num_elem;
28  std::vector<double> m_send_buffer;
29  std::vector<double> m_recv_buffer;
30  bool m_is_mpi_enabled;
31  };
32 }
33 
34 #endif
Definition: ModelRegion.hpp:18
double big_o(void)
Definition: ModelRegion.cpp:113
Definition: ReduceModelRegion.hpp:16
void run(void)
Definition: ReduceModelRegion.cpp:42
ReduceModelRegion(double big_o_in, int verbosity, bool do_imbalance, bool do_progress, bool do_unmarked)
Definition: ReduceModelRegion.cpp:21
virtual ~ReduceModelRegion()=default
Definition: Accumulator.cpp:12