MCA/COMMON/UCX: added synonims for common ucx variables
- added synonims for atomic/osc modules Signed-off-by: Sergey Oblomov <sergeyo@mellanox.com>
Этот коммит содержится в:
родитель
6a7f66d9c2
Коммит
b72dd83f05
@ -107,6 +107,8 @@ static int component_register(void) {
|
|||||||
MCA_BASE_VAR_SCOPE_GROUP, &mca_osc_ucx_component.priority);
|
MCA_BASE_VAR_SCOPE_GROUP, &mca_osc_ucx_component.priority);
|
||||||
free(description_str);
|
free(description_str);
|
||||||
|
|
||||||
|
opal_common_ucx_mca_var_register(&mca_osc_ucx_component.super.osc_version);
|
||||||
|
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,26 +38,39 @@ OPAL_DECLSPEC void opal_common_ucx_mca_var_register(const mca_base_component_t *
|
|||||||
{
|
{
|
||||||
static int registered = 0;
|
static int registered = 0;
|
||||||
static int hook_index;
|
static int hook_index;
|
||||||
|
static int verbose_index;
|
||||||
|
static int progress_index;
|
||||||
if (!registered) {
|
if (!registered) {
|
||||||
mca_base_var_register("opal", "opal_common", "ucx", "verbose",
|
verbose_index = mca_base_var_register("opal", "opal_common", "ucx", "verbose",
|
||||||
"Verbose level of the UCX components",
|
"Verbose level of the UCX components",
|
||||||
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
|
MCA_BASE_VAR_TYPE_INT, NULL, 0,
|
||||||
OPAL_INFO_LVL_3, MCA_BASE_VAR_SCOPE_LOCAL,
|
MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
||||||
&opal_common_ucx.verbose);
|
MCA_BASE_VAR_SCOPE_LOCAL,
|
||||||
mca_base_var_register("opal", "opal_common", "ucx", "progress_iterations",
|
&opal_common_ucx.verbose);
|
||||||
"Set number of calls of internal UCX progress calls per opal_progress call",
|
progress_index = mca_base_var_register("opal", "opal_common", "ucx", "progress_iterations",
|
||||||
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE,
|
"Set number of calls of internal UCX progress "
|
||||||
OPAL_INFO_LVL_3, MCA_BASE_VAR_SCOPE_LOCAL,
|
"calls per opal_progress call",
|
||||||
&opal_common_ucx.progress_iterations);
|
MCA_BASE_VAR_TYPE_INT, NULL, 0,
|
||||||
|
MCA_BASE_VAR_FLAG_SETTABLE, OPAL_INFO_LVL_3,
|
||||||
|
MCA_BASE_VAR_SCOPE_LOCAL,
|
||||||
|
&opal_common_ucx.progress_iterations);
|
||||||
hook_index = mca_base_var_register("opal", "opal_common", "ucx", "opal_mem_hooks",
|
hook_index = mca_base_var_register("opal", "opal_common", "ucx", "opal_mem_hooks",
|
||||||
"Use OPAL memory hooks, instead of UCX internal memory hooks",
|
"Use OPAL memory hooks, instead of UCX internal "
|
||||||
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
|
"memory hooks", MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
|
||||||
OPAL_INFO_LVL_3,
|
OPAL_INFO_LVL_3,
|
||||||
MCA_BASE_VAR_SCOPE_LOCAL,
|
MCA_BASE_VAR_SCOPE_LOCAL,
|
||||||
&opal_common_ucx.opal_mem_hooks);
|
&opal_common_ucx.opal_mem_hooks);
|
||||||
registered = 1;
|
registered = 1;
|
||||||
}
|
}
|
||||||
if (component) {
|
if (component) {
|
||||||
|
mca_base_var_register_synonym(verbose_index, component->mca_project_name,
|
||||||
|
component->mca_type_name,
|
||||||
|
component->mca_component_name,
|
||||||
|
"verbose", 0);
|
||||||
|
mca_base_var_register_synonym(progress_index, component->mca_project_name,
|
||||||
|
component->mca_type_name,
|
||||||
|
component->mca_component_name,
|
||||||
|
"progress_iterations", 0);
|
||||||
mca_base_var_register_synonym(hook_index, component->mca_project_name,
|
mca_base_var_register_synonym(hook_index, component->mca_project_name,
|
||||||
component->mca_type_name,
|
component->mca_type_name,
|
||||||
component->mca_component_name,
|
component->mca_component_name,
|
||||||
|
@ -86,6 +86,8 @@ static int ucx_register(void)
|
|||||||
MCA_BASE_VAR_SCOPE_ALL_EQ,
|
MCA_BASE_VAR_SCOPE_ALL_EQ,
|
||||||
&mca_atomic_ucx_component.priority);
|
&mca_atomic_ucx_component.priority);
|
||||||
|
|
||||||
|
opal_common_ucx_mca_var_register(&mca_atomic_ucx_component.atomic_version);
|
||||||
|
|
||||||
return OSHMEM_SUCCESS;
|
return OSHMEM_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user