1
1

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.
Этот коммит содержится в:
Todd Kordenbrock 2015-12-15 13:38:49 -06:00
родитель 607d7c7545
Коммит 8a3660138e

Просмотреть файл

@ -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;