btl/sm: add some protection for the use_knem = -1 case
Need to unset the dummy btl_get and remove the MCA_BTL_FLAGS_GET flag if neither knem nor cma can be used.
Этот коммит содержится в:
родитель
d7c7bb3993
Коммит
998e69a6fa
@ -937,6 +937,10 @@ mca_btl_sm_component_init(int *num_btls,
|
||||
"knem requested but not available",
|
||||
true, opal_process_info.nodename);
|
||||
return NULL;
|
||||
} else if (0 == mca_btl_sm_component.use_cma) {
|
||||
/* disable get when not using knem or cma */
|
||||
mca_btl_sm.super.btl_get = NULL;
|
||||
mca_btl_sm.super.btl_flags &= ~MCA_BTL_FLAGS_GET;
|
||||
}
|
||||
|
||||
/* Otherwise, use_knem was 0 (and we didn't get here) or use_knem
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user