PML/UCX: Don't destroy UCP worker if it wasn't created
Signed-off-by: Dmitry Gladkov <dmitrygla@mellanox.com>
Этот коммит содержится в:
родитель
9920da4992
Коммит
c864ca51d2
@ -257,8 +257,8 @@ int mca_pml_ucx_init(void)
|
|||||||
|
|
||||||
err_destroy_worker:
|
err_destroy_worker:
|
||||||
ucp_worker_destroy(ompi_pml_ucx.ucp_worker);
|
ucp_worker_destroy(ompi_pml_ucx.ucp_worker);
|
||||||
ompi_pml_ucx.ucp_worker = NULL;
|
|
||||||
err:
|
err:
|
||||||
|
ompi_pml_ucx.ucp_worker = NULL;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,7 +288,7 @@ int mca_pml_ucx_cleanup(void)
|
|||||||
OBJ_DESTRUCT(&ompi_pml_ucx.convs);
|
OBJ_DESTRUCT(&ompi_pml_ucx.convs);
|
||||||
OBJ_DESTRUCT(&ompi_pml_ucx.persistent_reqs);
|
OBJ_DESTRUCT(&ompi_pml_ucx.persistent_reqs);
|
||||||
|
|
||||||
if (ompi_pml_ucx.ucp_worker) {
|
if (ompi_pml_ucx.ucp_worker != NULL) {
|
||||||
ucp_worker_destroy(ompi_pml_ucx.ucp_worker);
|
ucp_worker_destroy(ompi_pml_ucx.ucp_worker);
|
||||||
ompi_pml_ucx.ucp_worker = NULL;
|
ompi_pml_ucx.ucp_worker = NULL;
|
||||||
}
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user