Skip to content

Commit b480114

Browse files
committed
Merge pull request open-mpi#515 from jsquyres/v2.x
mtl/ofi: Require proper ordering by OFI provider.
2 parents 35e5360 + ed26236 commit b480114

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ompi/mca/mtl/ofi/mtl_ofi_component.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
127127
* ep_type: reliable datagram operation
128128
* caps: Capabilities required from the provider.
129129
* Tag matching is specified to implement MPI semantics.
130+
* msg_order: Guarantee that messages with same tag are ordered.
130131
*/
131132
hints = fi_allocinfo();
132133
if (!hints) {
@@ -135,9 +136,11 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
135136
__FILE__, __LINE__);
136137
goto error;
137138
}
138-
hints->mode = FI_CONTEXT;
139-
hints->ep_attr->type = FI_EP_RDM; /* Reliable datagram */
140-
hints->caps = FI_TAGGED; /* Tag matching interface */
139+
hints->mode = FI_CONTEXT;
140+
hints->ep_attr->type = FI_EP_RDM; /* Reliable datagram */
141+
hints->caps = FI_TAGGED; /* Tag matching interface */
142+
hints->tx_attr->msg_order = FI_ORDER_SAS;
143+
hints->rx_attr->msg_order = FI_ORDER_SAS;
141144

142145
/**
143146
* Refine filter for additional capabilities

0 commit comments

Comments
 (0)