Skip to content

Commit da132d8

Browse files
authored
Merge pull request #5066 from tkordenbrock/topic/v3.1.x/mtl-portals4.finalize.fix
v3.1.x: mtl-portals4: don't call progress() in finalize() if Portals4 was not initialized
2 parents 28ba854 + 1c748dc commit da132d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ompi/mca/mtl/portals4/mtl_portals4.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,10 @@ ompi_mtl_portals4_del_procs(struct mca_mtl_base_module_t *mtl,
548548
int
549549
ompi_mtl_portals4_finalize(struct mca_mtl_base_module_t *mtl)
550550
{
551-
opal_progress_unregister(ompi_mtl_portals4_progress);
552-
while (0 != ompi_mtl_portals4_progress()) { }
551+
if (0 == ompi_mtl_portals4.need_init) {
552+
opal_progress_unregister(ompi_mtl_portals4_progress);
553+
while (0 != ompi_mtl_portals4_progress()) { }
554+
}
553555

554556
#if OMPI_MTL_PORTALS4_FLOW_CONTROL
555557
ompi_mtl_portals4_flowctl_fini();

0 commit comments

Comments
 (0)