Browse Source

don't reallocate if there are already enough combinations

Samuel Thibault 8 years ago
parent
commit
19a535c3a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/perfmodel/perfmodel_history.c

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

@@ -718,7 +718,7 @@ static int parse_model_file(FILE *f, const char *path, struct starpu_perfmodel *
 		model->state->ncombs = ncombs;
 	}
 
-	if (ncombs >= model->state->ncombs_set)
+	if (ncombs > model->state->ncombs_set)
 	{
 		// The model has more combs than the original number of arch_combs, we need to reallocate
 		_starpu_perfmodel_realloc(model, ncombs);