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.
Этот коммит содержится в:
родитель
607d7c7545
Коммит
8a3660138e
@ -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;
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user