From fde8b89ceb74b8d10fe6c6f68ca48bced44454e3 Mon Sep 17 00:00:00 2001 From: yohann Date: Mon, 26 Oct 2015 11:28:38 -0700 Subject: [PATCH] mtl/ofi: Use OFI's representation of ANY_SRC instead of NULL. --- 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 5a0fd3c5c9..bb577051fc 100644 --- a/ompi/mca/mtl/ofi/mtl_ofi.h +++ b/ompi/mca/mtl/ofi/mtl_ofi.h @@ -457,9 +457,9 @@ ompi_mtl_ofi_recv_callback(struct fi_cq_tagged_entry *wc, * If the recv request was posted for any source, * we need to extract the source's actual address. */ - if (!ofi_req->remote_addr) { + if (ompi_mtl_ofi.any_addr == ofi_req->remote_addr) { src = MTL_OFI_GET_SOURCE(wc->tag); - ompi_proc = ompi_comm_peer_lookup(ofi_req->comm, src ); + ompi_proc = ompi_comm_peer_lookup(ofi_req->comm, src); endpoint = ompi_proc->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_MTL]; ofi_req->remote_addr = endpoint->peer_fiaddr; }