1
1

Merge pull request #1256 from tkordenbrock/topic/mtl.init.nid.pid.in.logical

mtl-portals4: initialize endpoint nid/pid when using logical mapping
Этот коммит содержится в:
Ryan Grant 2015-12-22 11:43:03 -07:00
родитель 607d7c7545 8a3660138e
Коммит 5ec5bd08c1

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

@ -280,7 +280,7 @@ create_maptable(size_t nprocs,
maptable[i].phys.pid = modex_id->phys.pid; maptable[i].phys.pid = modex_id->phys.pid;
maptable[i].phys.nid = modex_id->phys.nid; maptable[i].phys.nid = modex_id->phys.nid;
opal_output_verbose(50, ompi_mtl_base_framework.framework_output, 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); (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; return OMPI_ERR_OUT_OF_RESOURCE;
} else { } else {
if (ompi_mtl_portals4.use_logical) { if (ompi_mtl_portals4.use_logical) {
endpoint->phys.nid = 0;
endpoint->phys.pid = 0;
endpoint->rank = proc->super.proc_name.vpid; endpoint->rank = proc->super.proc_name.vpid;
} else { } else {
int ret; int ret;