Skip to content

Commit 4615e65

Browse files
author
Michael Heinz
authored
Merge pull request #8931 from mwheinz/8929-FI_CONTEXT2
Add support for FI_CONTEXT2 in OFI MTL and BTL.
2 parents 028bf28 + 648fb8c commit 4615e65

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

ompi/mca/mtl/ofi/mtl_ofi_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
637637

638638
/* Make sure to get a RDM provider that can do the tagged matching
639639
interface and local communication and remote communication. */
640-
hints->mode = FI_CONTEXT;
640+
hints->mode = FI_CONTEXT | FI_CONTEXT2;
641641
hints->ep_attr->type = FI_EP_RDM;
642642
hints->caps |= FI_TAGGED | FI_LOCAL_COMM | FI_REMOTE_COMM | FI_DIRECTED_RECV;
643643
hints->tx_attr->msg_order = FI_ORDER_SAS;

ompi/mca/mtl/ofi/mtl_ofi_request.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct ompi_mtl_ofi_request_t {
3434
ompi_mtl_ofi_request_type_t type;
3535

3636
/** OFI context */
37-
struct fi_context ctx;
37+
struct fi_context2 ctx;
3838

3939
/** Completion count used by blocking and/or synchronous operations */
4040
volatile int completion_count;

opal/mca/btl/ofi/btl_ofi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ typedef struct mca_btl_ofi_base_frag_t mca_btl_ofi_base_frag_t;
205205
OBJ_CLASS_DECLARATION(mca_btl_ofi_base_frag_t);
206206

207207
struct mca_btl_ofi_completion_context_t {
208-
struct fi_context ctx;
208+
struct fi_context2 ctx;
209209
void *comp;
210210
};
211211

opal/mca/btl/ofi/btl_ofi_component.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,9 @@ static mca_btl_base_module_t **mca_btl_ofi_component_init(int *num_btl_modules,
311311
/* ask for capabilities */
312312
/* TODO: catch the caps here. */
313313
hints.caps = required_caps;
314-
hints.mode = FI_CONTEXT;
315314

316315
/* Ask for completion context */
317-
hints.mode = FI_CONTEXT;
316+
hints.mode = FI_CONTEXT | FI_CONTEXT2;
318317

319318
hints.fabric_attr = &fabric_attr;
320319
hints.domain_attr = &domain_attr;

0 commit comments

Comments
 (0)