diff --git a/ompi/mca/coll/hcoll/coll_hcoll_module.c b/ompi/mca/coll/hcoll/coll_hcoll_module.c index be305b2b21..f4a0b47db4 100644 --- a/ompi/mca/coll/hcoll/coll_hcoll_module.c +++ b/ompi/mca/coll/hcoll/coll_hcoll_module.c @@ -174,11 +174,11 @@ static int mca_coll_hcoll_module_enable(mca_coll_base_module_t *module, int mca_coll_hcoll_progress(void) { - if (ompi_mpi_finalized){ + if (!ompi_mpi_finalized){ + (*hcoll_progress_fn)(); + } else { hcoll_rte_p2p_disabled_notify(); } - - (*hcoll_progress_fn)(); return OMPI_SUCCESS; }