52 double avg_under_time;
64 double coeff_guess[nparam];
77 LinModel(
double const * init_guess,
char const * name,
int hist_size=32768);
98 bool should_observe(
double const *
time_param);
105 double est_time(
double const * param);
143 template <
int nparam>
146 LinModel<nparam*(nparam+1)*(nparam+2)/6+nparam*(nparam+1)/2+nparam> lmdl;
155 CubicModel(
double const * init_guess,
char const * name,
int hist_size=8192);
175 bool should_observe(
double const * time_param);
182 double est_time(
double const * param);
virtual void write_coeff(std::string file_name)
void load_all_models(std::string file_name)
void update_all_models(MPI_Comm comm)
virtual void load_coeff(std::string file_name)
void write_all_models(std::string file_name)
Cubic performance models, which given measurements, provides new model guess.
virtual void dump_data(std::string path)
virtual void update(MPI_Comm cm)
Linear performance models, which given measurements, provides new model guess.
void dump_all_models(std::string path)
double * time_param_mat
matrix containing parameter/time obervations, with hist_size columns and nmat_lda rows...
int hist_size
the number of latest observations we want to consider when updating the model