From 8a3660138ecdd8860929b1c39abf060493a98eae Mon Sep 17 00:00:00 2001 From: Todd Kordenbrock Date: Tue, 15 Dec 2015 13:38:49 -0600 Subject: [PATCH] mtl-portals4: initialize endpoint nid/pid when using logical mapping When mtl-portals4 is configured for logical mapping, coll-portals4 must disqualify because it does not yet support logical mapping. coll-portals4 looks for the endpoint pid to be zero which tells it that mtl-portals4 is configured for logical mapping. This commit initializes the endpoint nid/pid to zero for logical mapping. --- ompi/mca/mtl/portals4/mtl_portals4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ompi/mca/mtl/portals4/mtl_portals4.c b/ompi/mca/mtl/portals4/mtl_portals4.c index 135a5638e0..9985d91269 100644 --- a/ompi/mca/mtl/portals4/mtl_portals4.c +++ b/ompi/mca/mtl/portals4/mtl_portals4.c @@ -280,7 +280,7 @@ create_maptable(size_t nprocs, maptable[i].phys.pid = modex_id->phys.pid; maptable[i].phys.nid = modex_id->phys.nid; opal_output_verbose(50, ompi_mtl_base_framework.framework_output, - "logical: global rank=%d pid=%d nid=%d\n", + "logical: global rank=%d pid=%x nid=%x\n", (int)i, maptable[i].phys.pid, maptable[i].phys.nid); } @@ -312,6 +312,8 @@ create_endpoint(ompi_proc_t *proc) return OMPI_ERR_OUT_OF_RESOURCE; } else { if (ompi_mtl_portals4.use_logical) { + endpoint->phys.nid = 0; + endpoint->phys.pid = 0; endpoint->rank = proc->super.proc_name.vpid; } else { int ret;