Explorar o código

Only use non-linear regression if the requested size falls inside the covered measures

Samuel Thibault %!s(int64=13) %!d(string=hai) anos
pai
achega
b0b2e42d5f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/perfmodel/perfmodel_history.c

+ 1 - 1
src/core/perfmodel/perfmodel_history.c

@@ -878,7 +878,7 @@ double _starpu_non_linear_regression_based_job_expected_perf(struct starpu_perfm
 
 	regmodel = &model->per_arch[arch][nimpl].regression;
 
-	if (regmodel->nl_valid)
+	if (regmodel->nl_valid && size >= regmodel->minx && size <= regmodel->maxx)
 		exp = regmodel->a*pow((double)size, regmodel->b) + regmodel->c;
 
 	return exp;