Skip to content

Commit f666b0d

Browse files
committed
mtl/portals4: Allocate a PT with the PTL_PT_FLOWCTRL flag only if OMPI_MTL_PORTALS4_FLOW_CONTROL is set
1 parent bed572c commit f666b0d

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
@@ -86,9 +86,11 @@ portals4_init_interface(void)
8686

8787
/* Create send and long message (read) portal table entries */
8888
ret = PtlPTAlloc(ompi_mtl_portals4.ni_h,
89+
#if OMPI_MTL_PORTALS4_FLOW_CONTROL
90+
PTL_PT_FLOWCTRL |
91+
#endif
8992
PTL_PT_ONLY_USE_ONCE |
90-
PTL_PT_ONLY_TRUNCATE |
91-
PTL_PT_FLOWCTRL,
93+
PTL_PT_ONLY_TRUNCATE,
9294
ompi_mtl_portals4.recv_eq_h,
9395
REQ_RECV_TABLE_ID,
9496
&ompi_mtl_portals4.recv_idx);

0 commit comments

Comments
 (0)