소스 검색

don't load old calibration if no row was found

Corentin Salingue 8 년 전
부모
커밋
9023691c56
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/perfmodel/multiple_regression.c

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

@@ -300,7 +300,7 @@ int _starpu_multiple_regression(struct starpu_perfmodel_history_list *ptr, doubl
 	_STARPU_MALLOC(my, n*sizeof(double));
 
 	/* Loading old calibration */
-	if (calibrate==1)
+	if (calibrate==1 && old_lines > 0)
 		load_old_calibration(mpar, my, nparameters, filepath);
 
 	/* Filling X and Y matrices with measured values */