瀏覽代碼

mlr: correcting the case STARPU_CALIBRATE=1 is run but with no history

Luka Stanisic 8 年之前
父節點
當前提交
7dbc418467
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/core/perfmodel/multiple_regression.c

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

@@ -265,7 +265,8 @@ int _starpu_multiple_regression(struct starpu_perfmodel_history_list *ptr, doubl
 		STARPU_ASSERT_MSG(f, "Could not save performance model into the file %s\n", filepath);
 		STARPU_ASSERT_MSG(f, "Could not save performance model into the file %s\n", filepath);
 		
 		
 		old_lines=count_file_lines(f);
 		old_lines=count_file_lines(f);
-		STARPU_ASSERT(old_lines);
+		/* If the program is run for the first time the old_lines will be 0 */
+		//STARPU_ASSERT(old_lines);
 
 
 		n+=old_lines;
 		n+=old_lines;
 	}
 	}