File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved
3
+ * Copyright (c) 2017 Los Alamos National Security, LLC. All rights
4
+ * reserved.
3
5
*
4
6
* $COPYRIGHT$
5
7
*
@@ -686,8 +688,8 @@ ompi_mtl_ofi_imrecv(struct mca_mtl_base_module_t *mtl,
686
688
msg .desc = NULL ;
687
689
msg .iov_count = 1 ;
688
690
msg .addr = 0 ;
689
- msg .tag = 0 ;
690
- msg .ignore = 0 ;
691
+ msg .tag = ofi_req -> match_bits ;
692
+ msg .ignore = ofi_req -> mask_bits ;
691
693
msg .context = (void * )& ofi_req -> ctx ;
692
694
msg .data = 0 ;
693
695
@@ -868,6 +870,7 @@ ompi_mtl_ofi_improbe(struct mca_mtl_base_module_t *mtl,
868
870
ofi_req -> error_callback = ompi_mtl_ofi_probe_error_callback ;
869
871
ofi_req -> completion_count = 1 ;
870
872
ofi_req -> match_state = 0 ;
873
+ ofi_req -> mask_bits = mask_bits ;
871
874
872
875
MTL_OFI_RETRY_UNTIL_DONE (fi_trecvmsg (ompi_mtl_ofi .ep , & msg , msgflags ));
873
876
if (- FI_ENOMSG == ret ) {
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved
3
+ * Copyright (c) 2017 Los Alamos National Security, LLC. All rights
4
+ * reserved.
3
5
*
4
6
* $COPYRIGHT$
5
7
*
@@ -71,9 +73,12 @@ struct ompi_mtl_ofi_request_t {
71
73
/** Flag to prevent MPI_Cancel from cancelling a started Recv request */
72
74
volatile bool req_started ;
73
75
74
- /** Request's tag used in case of an error. */
76
+ /** Request's tag used in case of an error. Also for FI_CLAIM requests. */
75
77
uint64_t match_bits ;
76
78
79
+ /** Used to build msg for fi_trecvmsg with FI_CLAIM */
80
+ uint64_t mask_bits ;
81
+
77
82
/** Remote OFI address used when a Recv needs to be ACKed */
78
83
fi_addr_t remote_addr ;
79
84
You can’t perform that action at this time.
0 commit comments