Skip to content

Commit

Permalink
accelerator/ze: adjust parameter names
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
edgargabriel committed Jul 30, 2024
1 parent 8d11393 commit 989243a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions opal/mca/accelerator/ze/accelerator_ze_component.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,18 @@ static int accelerator_ze_close(void)

static int accelerator_ze_component_register(void)
{
int var_id;

/* Set verbosity in the ze related code. */
opal_accelerator_ze_verbose = 0;
(void) mca_base_var_register("ompi", "mpi", "accelerator_ze", "verbose",
"Set level of ze verbosity", MCA_BASE_VAR_TYPE_INT, NULL,
0, 0, OPAL_INFO_LVL_9, MCA_BASE_VAR_SCOPE_READONLY,
&opal_accelerator_ze_verbose);

var_id = mca_base_component_var_register(&mca_accelerator_ze_component.super.base_version,
"verbose", "Set level of ze verbosity",
MCA_BASE_VAR_TYPE_INT, NULL,
0, 0, OPAL_INFO_LVL_9, MCA_BASE_VAR_SCOPE_READONLY,
&opal_accelerator_ze_verbose);
(void) mca_base_var_register_synonym (var_id, "ompi", "mpi", "accelerator_ze", "verbose",
MCA_BASE_VAR_SYN_FLAG_DEPRECATED);

return OPAL_SUCCESS;
}

Expand Down

0 comments on commit 989243a

Please sign in to comment.