瀏覽代碼

Fix multiple starpu initialize/shutdown

Samuel Thibault 5 年之前
父節點
當前提交
a615942517
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;
 	current_arch_comb = 0;
 	free(arch_combs);
 	free(arch_combs);
+	arch_combs = NULL;
 	STARPU_PTHREAD_RWLOCK_UNLOCK(&arch_combs_mutex);
 	STARPU_PTHREAD_RWLOCK_UNLOCK(&arch_combs_mutex);
 	STARPU_PTHREAD_RWLOCK_DESTROY(&arch_combs_mutex);
 	STARPU_PTHREAD_RWLOCK_DESTROY(&arch_combs_mutex);
 }
 }