1 #ifndef AUTOTUNECONFIG_H
2 #define AUTOTUNECONFIG_H
4 #include "../datastructures/maybe.hpp"
5 #include "../util/log.hpp"
6 #include "parameter.hpp"
7 #include "solverconfig.hpp"
12 using json = nlohmann::json;
14 class AutotuneConfig {
16 static AutotuneConfig *
19 if (instance ==
nullptr) {
20 instance =
new AutotuneConfig;
25 bool parse_cmdline(
int argc,
const char ** argv);
35 SolverConfig generateConfig();
37 AutotuneConfig(
const AutotuneConfig &) =
delete;
42 size_t current_parameter_group;
44 void read_auto_config(std::string file);
46 static AutotuneConfig * instance;
48 std::vector<std::vector<Parameter>> parameters;