Ver código fonte

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

Samuel Thibault 8 anos atrás
pai
commit
c8261aa58f
1 arquivos alterados com 1 adições e 0 exclusões
  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);