Przeglądaj źródła

drop spurious rewind

Samuel Thibault 11 lat temu
rodzic
commit
7f51e9fe3c
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      src/core/perfmodel/perfmodel_history.c

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

@@ -1036,10 +1036,9 @@ int starpu_perfmodel_load_symbol(const char *symbol, struct starpu_perfmodel *mo
 	FILE *f = fopen(path, "r");
 	STARPU_ASSERT(f);
 
-	_starpu_frdlock(f);
 	starpu_perfmodel_init(NULL, model);
-	rewind(f);
 
+	_starpu_frdlock(f);
 	parse_model_file(f, model, 1);
 	_starpu_frdunlock(f);