Skip to content

Commit e1f64e1

Browse files
committed
OPAL/MCA/COMMON/UCX: added a NULL check for tls and devices in opal_common_ucx_support_level
Signed-off-by: Roie Danino <[email protected]>
1 parent a1b02c6 commit e1f64e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opal/mca/common/ucx/common_ucx.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ OPAL_DECLSPEC opal_common_ucx_support_level_t opal_common_ucx_support_level(ucp_
245245
int ret;
246246
#endif
247247

248+
if ((*opal_common_ucx.tls == NULL) || (*opal_common_ucx.devices == NULL)) {
249+
opal_common_ucx_mca_var_register(NULL);
250+
}
251+
248252
is_any_tl = !strcmp(*opal_common_ucx.tls, "any");
249253
is_any_device = !strcmp(*opal_common_ucx.devices, "any");
250254

0 commit comments

Comments
 (0)