Skip to content

Commit 0b7c77c

Browse files
authored
Merge pull request #12864 from burlen/v5.0.x
coll tuned make mca parameters settable via MPI_T
2 parents e25d3e6 + dd5ccb3 commit 0b7c77c

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
@@ -132,28 +132,28 @@ static int tuned_register(void)
132132
ompi_coll_tuned_priority = 30;
133133
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
134134
"priority", "Priority of the tuned coll component",
135-
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
135+
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
136136
OPAL_INFO_LVL_6,
137-
MCA_BASE_VAR_SCOPE_READONLY,
137+
MCA_BASE_VAR_SCOPE_ALL,
138138
&ompi_coll_tuned_priority);
139139

140140
/* some initial guesses at topology parameters */
141141
ompi_coll_tuned_init_tree_fanout = 4;
142142
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
143143
"init_tree_fanout",
144144
"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",
145-
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
145+
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
146146
OPAL_INFO_LVL_6,
147-
MCA_BASE_VAR_SCOPE_READONLY,
147+
MCA_BASE_VAR_SCOPE_ALL,
148148
&ompi_coll_tuned_init_tree_fanout);
149149

150150
ompi_coll_tuned_init_chain_fanout = 4;
151151
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
152152
"init_chain_fanout",
153153
"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",
154-
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
154+
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
155155
OPAL_INFO_LVL_6,
156-
MCA_BASE_VAR_SCOPE_READONLY,
156+
MCA_BASE_VAR_SCOPE_ALL,
157157
&ompi_coll_tuned_init_chain_fanout);
158158

159159
ompi_coll_tuned_alltoall_small_msg = 200;
@@ -177,18 +177,18 @@ static int tuned_register(void)
177177
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
178178
"use_dynamic_rules",
179179
"Switch used to decide if we use static (compiled/if statements) or dynamic (built at runtime) decision function rules",
180-
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
180+
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
181181
OPAL_INFO_LVL_6,
182-
MCA_BASE_VAR_SCOPE_READONLY,
182+
MCA_BASE_VAR_SCOPE_ALL,
183183
&ompi_coll_tuned_use_dynamic_rules);
184184

185185
ompi_coll_tuned_dynamic_rules_filename = NULL;
186186
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
187187
"dynamic_rules_filename",
188188
"Filename of configuration file that contains the dynamic (@runtime) decision function rules",
189-
MCA_BASE_VAR_TYPE_STRING, NULL, 0, 0,
189+
MCA_BASE_VAR_TYPE_STRING, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
190190
OPAL_INFO_LVL_6,
191-
MCA_BASE_VAR_SCOPE_READONLY,
191+
MCA_BASE_VAR_SCOPE_ALL,
192192
&ompi_coll_tuned_dynamic_rules_filename);
193193

194194
/* register forced params */

0 commit comments

Comments
 (0)