From b8e1af6fcb211debdde5e3c4ae1a9ac3a7d19294 Mon Sep 17 00:00:00 2001 From: Yossi Itigin Date: Wed, 10 Oct 2018 20:40:35 +0300 Subject: [PATCH] osc_ucx: add worker flush before osc module free Make sure all pending communications are done on all ranks before closing the window. This way it will be safe to close the endpoints when closing the component. Signed-off-by: Yossi Itigin --- ompi/mca/osc/ucx/osc_ucx_component.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ompi/mca/osc/ucx/osc_ucx_component.c b/ompi/mca/osc/ucx/osc_ucx_component.c index 5f10929c4c..9bea47363b 100644 --- a/ompi/mca/osc/ucx/osc_ucx_component.c +++ b/ompi/mca/osc/ucx/osc_ucx_component.c @@ -825,6 +825,8 @@ int ompi_osc_ucx_free(struct ompi_win_t *win) { ucp_worker_progress(mca_osc_ucx_component.ucp_worker); } + opal_common_ucx_worker_flush(mca_osc_ucx_component.ucp_worker); + ret = module->comm->c_coll->coll_barrier(module->comm, module->comm->c_coll->coll_barrier_module);