浏览代码

Fix previous commit: we need to get back to beginning of file :)

Samuel Thibault 8 年之前
父节点
当前提交
c8261aa58f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/core/perfmodel/perfmodel_history.c

+ 1 - 0
src/core/perfmodel/perfmodel_history.c

@@ -627,6 +627,7 @@ static int parse_model_file(FILE *f, const char *path, struct starpu_perfmodel *
 		_STARPU_DISP("Performance model file %s is empty, ignoring it\n", path);
 		return 0;
 	}
+	fseek(f, 0, SEEK_SET);
 
 	/* Parsing performance model version */
 	_starpu_drop_comments(f);