Skip to content

Commit ed93c43

Browse files
author
William Zhang
committed
scoll/ucc: Set default mca param value before registration
Setting the default right before registration is the well known behavior and prevents issues as the pointer can be set to NULL during param deregistration. Signed-off-by: William Zhang <wilzhang.amazon.com>
1 parent 6c8aded commit ed93c43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

oshmem/mca/scoll/ucc/scoll_ucc_component.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,13 @@ static int ucc_register(void)
9696
OPAL_INFO_LVL_9, MCA_BASE_VAR_SCOPE_READONLY,
9797
&cm->ucc_np);
9898

99+
cm->cts = "";
99100
mca_base_component_var_register(c, "cls",
100101
"Comma separated list of UCC CLS to be used for team creation",
101102
MCA_BASE_VAR_TYPE_STRING, NULL, 0, 0,
102103
OPAL_INFO_LVL_6, MCA_BASE_VAR_SCOPE_READONLY,
103104
&cm->cls);
104-
105+
cm->cts = SCOLL_UCC_CTS_STR;
105106
mca_base_component_var_register(c, "cts",
106107
"Comma separated list of UCC coll types to be enabled",
107108
MCA_BASE_VAR_TYPE_STRING, NULL, 0, 0,

0 commit comments

Comments
 (0)