瀏覽代碼

Handle non-calibrated implementations

Samuel Thibault 13 年之前
父節點
當前提交
c163358f96
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      src/core/perfmodel/perfmodel_history.c

+ 3 - 4
src/core/perfmodel/perfmodel_history.c

@@ -454,13 +454,12 @@ static void dump_model_file(FILE *f, struct starpu_perfmodel *model)
 				break;
 		}
 
+		unsigned max_impl = 0;
 		for (nimpl = 0; nimpl < STARPU_MAXIMPLEMENTATIONS; nimpl++)
 		{
-			if (get_n_entries(model, arch, nimpl) == 0)
-				break;
-
+			if (get_n_entries(model, arch, nimpl) != 0)
+				max_impl = nimpl + 1;
 		}
-		unsigned max_impl = nimpl;
 
 		if (max_impl == 0)
 			continue;