Browse Source

Fix multiple starpu initialize/shutdown

Samuel Thibault 5 years ago
parent
commit
a615942517
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/core/perfmodel/perfmodel_history.c

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

@@ -184,6 +184,7 @@ void _starpu_free_arch_combs(void)
 	}
 	current_arch_comb = 0;
 	free(arch_combs);
+	arch_combs = NULL;
 	STARPU_PTHREAD_RWLOCK_UNLOCK(&arch_combs_mutex);
 	STARPU_PTHREAD_RWLOCK_DESTROY(&arch_combs_mutex);
 }