Skip to content

Commit 172cd2d

Browse files
committed
mtl/ofi: Fix MPI_ANY_SOURCE for i(m)probe
Fix invalid handling of MPI_ANY_SOURCE for i(m)probe by using the any_source address handle rather than the 0 address handle. Intel test cases MPI_Probe_source_c and MPI_Probe_tag_c now passes. Commit e667455 in master (which has the fix) was a feature change and we are just backporting the bug fix to 3.1.x and 3.0.x branches. Signed-off-by: Mohan Gandhi <mohgan@amazon.com>
1 parent 9184e67 commit 172cd2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/mtl/ofi/mtl_ofi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ ompi_mtl_ofi_iprobe(struct mca_mtl_base_module_t *mtl,
747747
struct ompi_mtl_ofi_request_t ofi_req;
748748
ompi_proc_t *ompi_proc = NULL;
749749
mca_mtl_ofi_endpoint_t *endpoint = NULL;
750-
fi_addr_t remote_proc = 0;
750+
fi_addr_t remote_proc = ompi_mtl_ofi.any_addr;
751751
uint64_t match_bits, mask_bits;
752752
ssize_t ret;
753753
struct fi_msg_tagged msg;
@@ -827,7 +827,7 @@ ompi_mtl_ofi_improbe(struct mca_mtl_base_module_t *mtl,
827827
struct ompi_mtl_ofi_request_t *ofi_req;
828828
ompi_proc_t *ompi_proc = NULL;
829829
mca_mtl_ofi_endpoint_t *endpoint = NULL;
830-
fi_addr_t remote_proc = 0;
830+
fi_addr_t remote_proc = ompi_mtl_ofi.any_addr;
831831
uint64_t match_bits, mask_bits;
832832
ssize_t ret;
833833
struct fi_msg_tagged msg;

0 commit comments

Comments
 (0)