btl/openib: have add_proc() return immediately when the port is disabled.
Fixes an issue introduced in open-mpi/ompi@0a2ce58040 This is a one-off commit for the v4.0.x branch since btl/openib has been removed from master. Refs. open-mpi/ompi#6137 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
родитель
d7053a306a
Коммит
c58c774981
@ -1046,6 +1046,7 @@ int mca_btl_openib_add_procs(
|
|||||||
opal_show_help("help-mpi-btl-openib.txt", "ib port not selected",
|
opal_show_help("help-mpi-btl-openib.txt", "ib port not selected",
|
||||||
true, opal_process_info.nodename,
|
true, opal_process_info.nodename,
|
||||||
ibv_get_device_name(openib_btl->device->ib_dev), openib_btl->port_num);
|
ibv_get_device_name(openib_btl->device->ib_dev), openib_btl->port_num);
|
||||||
|
return OPAL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
btl_rank = get_openib_btl_params(openib_btl, &lcl_subnet_id_port_cnt);
|
btl_rank = get_openib_btl_params(openib_btl, &lcl_subnet_id_port_cnt);
|
||||||
|
@ -277,7 +277,6 @@ mca_btl_openib_proc_t* mca_btl_openib_proc_get_locked(opal_proc_t* proc)
|
|||||||
|
|
||||||
if (0 == ib_proc->proc_port_count) {
|
if (0 == ib_proc->proc_port_count) {
|
||||||
ib_proc->proc_endpoints = NULL;
|
ib_proc->proc_endpoints = NULL;
|
||||||
goto no_err_exit;
|
|
||||||
} else {
|
} else {
|
||||||
ib_proc->proc_endpoints = (volatile mca_btl_base_endpoint_t**)
|
ib_proc->proc_endpoints = (volatile mca_btl_base_endpoint_t**)
|
||||||
malloc(ib_proc->proc_port_count *
|
malloc(ib_proc->proc_port_count *
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user