diff --git a/ompi/mca/coll/ucc/coll_ucc_component.c b/ompi/mca/coll/ucc/coll_ucc_component.c index 936f01a0a3b..a70c6fb310e 100644 --- a/ompi/mca/coll/ucc/coll_ucc_component.c +++ b/ompi/mca/coll/ucc/coll_ucc_component.c @@ -49,7 +49,7 @@ mca_coll_ucc_component_t mca_coll_ucc_component = { 0, /* ucc_verbose */ 0, /* ucc_enable */ 2, /* ucc_np */ - "basic", /* cls */ + "", /* cls */ COLL_UCC_CTS_STR, /* requested coll_types string */ UCC_VERSION_STRING /* ucc version */ }; diff --git a/ompi/mca/coll/ucc/coll_ucc_module.c b/ompi/mca/coll/ucc/coll_ucc_module.c index f64bb90592d..1c69c1a08ca 100644 --- a/ompi/mca/coll/ucc/coll_ucc_module.c +++ b/ompi/mca/coll/ucc/coll_ucc_module.c @@ -234,10 +234,12 @@ static int mca_coll_ucc_init_ctx() { UCC_ERROR("UCC lib config read failed"); return OMPI_ERROR; } - if (UCC_OK != ucc_lib_config_modify(lib_config, "CLS", cm->cls)) { - ucc_lib_config_release(lib_config); - UCC_ERROR("failed to modify UCC lib config to set CLS"); - return OMPI_ERROR; + if (strlen(cm->cls) > 0) { + if (UCC_OK != ucc_lib_config_modify(lib_config, "CLS", cm->cls)) { + ucc_lib_config_release(lib_config); + UCC_ERROR("failed to modify UCC lib config to set CLS"); + return OMPI_ERROR; + } } if (UCC_OK != ucc_init(&lib_params, lib_config, &cm->ucc_lib)) { diff --git a/oshmem/mca/scoll/ucc/scoll_ucc_component.c b/oshmem/mca/scoll/ucc/scoll_ucc_component.c index a63e78799a4..c8626a4916d 100644 --- a/oshmem/mca/scoll/ucc/scoll_ucc_component.c +++ b/oshmem/mca/scoll/ucc/scoll_ucc_component.c @@ -60,7 +60,7 @@ mca_scoll_ucc_component_t mca_scoll_ucc_component = { 0, /* verbose level */ 0, /* ucc_enable */ 2, /* ucc_np */ - "basic", /* cls */ + "", /* cls */ SCOLL_UCC_CTS_STR, /* cts */ 0, /* nr_modules */ false /* libucc_initialized */ diff --git a/oshmem/mca/scoll/ucc/scoll_ucc_module.c b/oshmem/mca/scoll/ucc/scoll_ucc_module.c index f70ecbdb4ba..7b654f34371 100644 --- a/oshmem/mca/scoll/ucc/scoll_ucc_module.c +++ b/oshmem/mca/scoll/ucc/scoll_ucc_module.c @@ -220,13 +220,13 @@ static int mca_scoll_ucc_init_ctx(oshmem_group_t *osh_group) UCC_ERROR("UCC lib config read failed"); return OSHMEM_ERROR; } - - if (UCC_OK != ucc_lib_config_modify(lib_config, "CLS", cm->cls)) { - ucc_lib_config_release(lib_config); - UCC_ERROR("failed to modify UCC lib config to set CLS"); - return OSHMEM_ERROR; + if (strlen(cm->cls) > 0) { + if (UCC_OK != ucc_lib_config_modify(lib_config, "CLS", cm->cls)) { + ucc_lib_config_release(lib_config); + UCC_ERROR("failed to modify UCC lib config to set CLS"); + return OSHMEM_ERROR; + } } - if (UCC_OK != ucc_init(&lib_params, lib_config, &cm->ucc_lib)) { UCC_ERROR("UCC lib init failed"); ucc_lib_config_release(lib_config);