Skip to content

Commit 1af6dbe

Browse files
authored
Merge pull request #7066 from tkordenbrock/topic/master/portals4.fix.flowcontrol.bugs
portals4: fix flow control bugs
2 parents cf9a5fb + f7e74b6 commit 1af6dbe

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ompi/mca/mtl/portals4/mtl_portals4.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* University of Stuttgart. All rights reserved.
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
12-
* Copyright (c) 2010-2015 Sandia National Laboratories. All rights reserved.
12+
* Copyright (c) 2010-2019 Sandia National Laboratories. All rights reserved.
1313
* Copyright (c) 2014 Intel, Inc. All rights reserved.
1414
* $COPYRIGHT$
1515
*
@@ -551,12 +551,12 @@ ompi_mtl_portals4_finalize(struct mca_mtl_base_module_t *mtl)
551551
if (0 == ompi_mtl_portals4.need_init) {
552552
opal_progress_unregister(ompi_mtl_portals4_progress);
553553
while (0 != ompi_mtl_portals4_progress()) { }
554-
}
555554

556555
#if OMPI_MTL_PORTALS4_FLOW_CONTROL
557-
ompi_mtl_portals4_flowctl_fini();
556+
ompi_mtl_portals4_flowctl_fini();
558557
#endif
559-
ompi_mtl_portals4_recv_short_fini();
558+
ompi_mtl_portals4_recv_short_fini();
559+
}
560560

561561
if (!PtlHandleIsEqual(ompi_mtl_portals4.long_overflow_me_h, PTL_INVALID_HANDLE)) {
562562
PtlMEUnlink(ompi_mtl_portals4.long_overflow_me_h);

opal/mca/btl/portals4/configure.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Copyright (c) 2004-2005 The Regents of the University of California.
1212
# All rights reserved.
1313
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
14-
# Copyright (c) 2010 Sandia National Laboratories. All rights reserved.
14+
# Copyright (c) 2010-2019 Sandia National Laboratories. All rights reserved.
1515
# Copyright (c) 2014 Bull SAS. All rights reserved.
1616
# $COPYRIGHT$
1717
#
@@ -44,9 +44,9 @@ AC_DEFUN([MCA_opal_btl_portals4_CONFIG],[
4444
[AC_HELP_STRING([--enable-btl-portals4-flow-control],
4545
[enable flow control for Portals 4 BTL (default: disabled)])])
4646
AC_MSG_CHECKING([whether to enable flow control])
47-
if test "$enable_btl_portals4_flow_control" != "yes"; then
48-
AC_MSG_RESULT([no])
49-
btl_portals4_flow_control_enabled=0
47+
if test "$enable_btl_portals4_flow_control" != "no"; then
48+
AC_MSG_RESULT([yes])
49+
btl_portals4_flow_control_enabled=1
5050
else
5151
AC_MSG_RESULT([no])
5252
btl_portals4_flow_control_enabled=0

0 commit comments

Comments
 (0)