소스 검색

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

Samuel Thibault 13 년 전
부모
커밋
b0b2e42d5f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;