From 496c2a9536938a96ab673a3808675473eac3c5e8 Mon Sep 17 00:00:00 2001 From: Mohan Gandhi Date: Mon, 10 Dec 2018 15:06:59 -0800 Subject: [PATCH] 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 --- ompi/mca/mtl/ofi/mtl_ofi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/mca/mtl/ofi/mtl_ofi.h b/ompi/mca/mtl/ofi/mtl_ofi.h index 7f30a6ff93d..8a6918cf78f 100644 --- a/ompi/mca/mtl/ofi/mtl_ofi.h +++ b/ompi/mca/mtl/ofi/mtl_ofi.h @@ -747,7 +747,7 @@ ompi_mtl_ofi_iprobe(struct mca_mtl_base_module_t *mtl, struct ompi_mtl_ofi_request_t ofi_req; ompi_proc_t *ompi_proc = NULL; mca_mtl_ofi_endpoint_t *endpoint = NULL; - fi_addr_t remote_proc = 0; + fi_addr_t remote_proc = ompi_mtl_ofi.any_addr; uint64_t match_bits, mask_bits; ssize_t ret; struct fi_msg_tagged msg; @@ -827,7 +827,7 @@ ompi_mtl_ofi_improbe(struct mca_mtl_base_module_t *mtl, struct ompi_mtl_ofi_request_t *ofi_req; ompi_proc_t *ompi_proc = NULL; mca_mtl_ofi_endpoint_t *endpoint = NULL; - fi_addr_t remote_proc = 0; + fi_addr_t remote_proc = ompi_mtl_ofi.any_addr; uint64_t match_bits, mask_bits; ssize_t ret; struct fi_msg_tagged msg;