From c31602155f9c412b0eae751964d3e380fbad53ef Mon Sep 17 00:00:00 2001 From: hhb1029 Date: Mon, 20 Jun 2022 22:13:23 +0800 Subject: [PATCH] [Huawei]for association algorithm of binomial tree, set MAX_PHASES 32 Offering:hpc --- builtin/plan/builtin_binomial_tree.c | 2 +- builtin/plan/builtin_recursive.c | 2 +- builtin/plan/builtin_trees.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/plan/builtin_binomial_tree.c b/builtin/plan/builtin_binomial_tree.c index 24c9704..ce0b719 100644 --- a/builtin/plan/builtin_binomial_tree.c +++ b/builtin/plan/builtin_binomial_tree.c @@ -23,7 +23,7 @@ * MAX_PHASES for tree plan is 4 * MAX_PHASES for recursive plan is 4 (namely it support 2^4 nodes !) */ -#define MAX_PHASES 15 /* till now, binomial tree can only support 2^MAX_PHASES process at most */ +#define MAX_PHASES 32 /* till now, binomial tree can only support 2^MAX_PHASES process at most */ ucs_config_field_t ucg_builtin_binomial_tree_config_table[] = { diff --git a/builtin/plan/builtin_recursive.c b/builtin/plan/builtin_recursive.c index 028cd3f..7817b28 100644 --- a/builtin/plan/builtin_recursive.c +++ b/builtin/plan/builtin_recursive.c @@ -13,7 +13,7 @@ #include #define MAX_PEERS 100 -#define MAX_PHASES 16 +#define MAX_PHASES 32 #define NUM_TWO 2 #define FACTOR 2 diff --git a/builtin/plan/builtin_trees.c b/builtin/plan/builtin_trees.c index 131c949..bcc3875 100644 --- a/builtin/plan/builtin_trees.c +++ b/builtin/plan/builtin_trees.c @@ -11,7 +11,7 @@ #include "builtin_plan.h" #define MAX_PEERS (100) -#define MAX_PHASES (16) +#define MAX_PHASES (32) ucs_config_field_t ucg_builtin_trees_config_table[] = { {"INTER_TREE_TYPE", "1", "inter-node tree type. (0: binomial tree, 1: k-nomial tree)\n",