Skip to content

Commit 63e6893

Browse files
author
Mamzi Bayatpour [email protected] ()
committed
add description for mca vars
1 parent 9f46f48 commit 63e6893

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ompi/mca/osc/ucx/osc_ucx_component.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,29 @@ static int component_register(void) {
177177

178178
thread_enabled = opal_using_threads();
179179
mca_osc_ucx_component.acc_single_intrinsic = false;
180+
180181
opal_asprintf(&description_str, "Enable optimizations for MPI_Fetch_and_op, MPI_Accumulate, etc for codes "
181182
"that will not use anything more than a single predefined datatype (default: %s)",
182183
mca_osc_ucx_component.acc_single_intrinsic ? "true" : "false");
183184
(void) mca_base_component_var_register(&mca_osc_ucx_component.super.osc_version, "acc_single_intrinsic",
184185
description_str, MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0, OPAL_INFO_LVL_5,
185186
MCA_BASE_VAR_SCOPE_GROUP, &mca_osc_ucx_component.acc_single_intrinsic);
187+
188+
opal_asprintf(&description_str, "Enable nonblocking MPI_Accumulate and MPI_Get_accumulate (default: %s)",
189+
enable_nonblocking_accumulate ? "true" : "false");
186190
(void) mca_base_component_var_register(&mca_osc_ucx_component.super.osc_version, "enable_nonblocking_accumulate",
187191
description_str, MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0, OPAL_INFO_LVL_5,
188192
MCA_BASE_VAR_SCOPE_GROUP, &enable_nonblocking_accumulate);
193+
194+
opal_asprintf(&description_str, "Enable optimizations for multi-threaded applications by allocating a separate worker "
195+
"for each thread and a separate endpoint for each window (default: %s)",
196+
thread_enabled ? "true" : "false");
189197
(void) mca_base_component_var_register(&mca_osc_ucx_component.super.osc_version, "enable_wpool_thread_multiple",
190198
description_str, MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0, OPAL_INFO_LVL_5,
191199
MCA_BASE_VAR_SCOPE_GROUP, &thread_enabled);
200+
201+
opal_asprintf(&description_str, "Threshold on number of nonblocking accumulate calls on which there is a periodical "
202+
"flush (default: %d)", ompi_osc_ucx_outstanding_ops_flush_threshold);
192203
(void) mca_base_component_var_register(&mca_osc_ucx_component.super.osc_version, "outstanding_ops_flush_threshold",
193204
description_str, MCA_BASE_VAR_TYPE_INT, NULL, 0, 0, OPAL_INFO_LVL_5,
194205
MCA_BASE_VAR_SCOPE_GROUP, &ompi_osc_ucx_outstanding_ops_flush_threshold);

0 commit comments

Comments
 (0)