Skip to content

Commit b44ecf0

Browse files
committed
accelerator/ze: adjust parameter names
make the same adjustments for the parameter names for ze as was done for rocm component, for the sake of consistency. The cuda componet does not register its parameters in the component itself, so this would be a bigger change. Signed-off-by: Edgar Gabriel <Edgar.Gabriel@amd.com>
1 parent 8d11393 commit b44ecf0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

opal/mca/accelerator/ze/accelerator_ze_component.c

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,17 @@ static int accelerator_ze_close(void)
110110

111111
static int accelerator_ze_component_register(void)
112112
{
113+
int var_id;
114+
113115
/* Set verbosity in the ze related code. */
114116
opal_accelerator_ze_verbose = 0;
115-
(void) mca_base_var_register("ompi", "mpi", "accelerator_ze", "verbose",
116-
"Set level of ze verbosity", MCA_BASE_VAR_TYPE_INT, NULL,
117-
0, 0, OPAL_INFO_LVL_9, MCA_BASE_VAR_SCOPE_READONLY,
118-
&opal_accelerator_ze_verbose);
117+
var_id = mca_base_component_var_register(&mca_accelerator_ze_component.super.base_version,
118+
"verbose", "Set level of ze verbosity",
119+
MCA_BASE_VAR_TYPE_INT, NULL,
120+
0, 0, OPAL_INFO_LVL_9, MCA_BASE_VAR_SCOPE_READONLY,
121+
&opal_accelerator_ze_verbose);
122+
(void) mca_base_var_register_synonym (var_id, "ompi", "mpi", "accelerator_ze", "verbose",
123+
MCA_BASE_VAR_SYN_FLAG_DEPRECATED);
119124

120125
return OPAL_SUCCESS;
121126
}

0 commit comments

Comments
 (0)