Explorar o código

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

Samuel Thibault %!s(int64=8) %!d(string=hai) anos
pai
achega
c8261aa58f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);