소스 검색

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);