Преглед на файлове

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 */