Skip to content

Commit 1c47c87

Browse files
authored
Merge pull request #12639 from burlen/main
coll tuned make mca parameters settable via MPI_T
2 parents 069a8c4 + a5fe137 commit 1c47c87

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ompi/mca/coll/tuned/coll_tuned_component.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,28 +129,28 @@ static int tuned_register(void)
129129
ompi_coll_tuned_priority = 30;
130130
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
131131
"priority", "Priority of the tuned coll component",
132-
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
132+
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
133133
OPAL_INFO_LVL_6,
134-
MCA_BASE_VAR_SCOPE_READONLY,
134+
MCA_BASE_VAR_SCOPE_ALL,
135135
&ompi_coll_tuned_priority);
136136

137137
/* some initial guesses at topology parameters */
138138
ompi_coll_tuned_init_tree_fanout = 4;
139139
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
140140
"init_tree_fanout",
141141
"Initial fanout used in the tree topologies for each communicator. This is only an initial guess, if a tuned collective needs a different fanout for an operation, it build it dynamically. This parameter is only for the first guess and might save a little time",
142-
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
142+
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
143143
OPAL_INFO_LVL_6,
144-
MCA_BASE_VAR_SCOPE_READONLY,
144+
MCA_BASE_VAR_SCOPE_ALL,
145145
&ompi_coll_tuned_init_tree_fanout);
146146

147147
ompi_coll_tuned_init_chain_fanout = 4;
148148
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
149149
"init_chain_fanout",
150150
"Initial fanout used in the chain (fanout followed by pipeline) topologies for each communicator. This is only an initial guess, if a tuned collective needs a different fanout for an operation, it build it dynamically. This parameter is only for the first guess and might save a little time",
151-
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
151+
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
152152
OPAL_INFO_LVL_6,
153-
MCA_BASE_VAR_SCOPE_READONLY,
153+
MCA_BASE_VAR_SCOPE_ALL,
154154
&ompi_coll_tuned_init_chain_fanout);
155155

156156
int deprecated_mca_params = -1;
@@ -173,18 +173,18 @@ static int tuned_register(void)
173173
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
174174
"use_dynamic_rules",
175175
"Switch used to decide if we use static (compiled/if statements) or dynamic (built at runtime) decision function rules",
176-
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
176+
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
177177
OPAL_INFO_LVL_6,
178-
MCA_BASE_VAR_SCOPE_READONLY,
178+
MCA_BASE_VAR_SCOPE_ALL,
179179
&ompi_coll_tuned_use_dynamic_rules);
180180

181181
ompi_coll_tuned_dynamic_rules_filename = NULL;
182182
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
183183
"dynamic_rules_filename",
184184
"Filename of configuration file that contains the dynamic (@runtime) decision function rules",
185-
MCA_BASE_VAR_TYPE_STRING, NULL, 0, 0,
185+
MCA_BASE_VAR_TYPE_STRING, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
186186
OPAL_INFO_LVL_6,
187-
MCA_BASE_VAR_SCOPE_READONLY,
187+
MCA_BASE_VAR_SCOPE_ALL,
188188
&ompi_coll_tuned_dynamic_rules_filename);
189189

190190
/* register forced params */

0 commit comments

Comments
 (0)