From acce172a87b98ccde0bb63f1eb8dcfdff128c8bd Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Tue, 5 Jul 2005 14:03:49 +0000 Subject: [PATCH] * after checking with Tim, add MCA_BTL_TAG_MAX constant - avoid having to hard code 256 into all the module structs. * Update template btl to match change This commit was SVN r6348. --- ompi/mca/btl/btl.h | 1 + ompi/mca/btl/template/btl_template.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/btl/btl.h b/ompi/mca/btl/btl.h index edf50cba37..7af856b264 100644 --- a/ompi/mca/btl/btl.h +++ b/ompi/mca/btl/btl.h @@ -129,6 +129,7 @@ typedef uint8_t mca_btl_base_tag_t; #define MCA_BTL_TAG_BTL 0 #define MCA_BTL_TAG_PML 1 #define MCA_BTL_TAG_USR 2 +#define MCA_BTL_TAG_MAX 256 /* 1 + highest allowed tag num */ /* prefered protocol */ #define MCA_BTL_FLAGS_SEND 1 diff --git a/ompi/mca/btl/template/btl_template.h b/ompi/mca/btl/template/btl_template.h index 5f7dc3c36c..887951b8d9 100644 --- a/ompi/mca/btl/template/btl_template.h +++ b/ompi/mca/btl/template/btl_template.h @@ -86,7 +86,7 @@ extern mca_btl_template_component_t mca_btl_template_component; */ struct mca_btl_template_module_t { mca_btl_base_module_t super; /**< base BTL interface */ - mca_btl_base_recv_reg_t template_reg[256]; + mca_btl_base_recv_reg_t template_reg[MCA_BTL_TAG_MAX]; /* free list of fragment descriptors */ ompi_free_list_t template_frag_eager;