Set the nodeid to something somewhat sane if we're not using modex, and
don't set the LOCAL flag just because both procs have an invalid nodeid. This commit was SVN r17917.
Этот коммит содержится в:
родитель
5a7ebf5f25
Коммит
f176c67cd2
@ -244,6 +244,7 @@ ompi_proc_get_info(void)
|
|||||||
/* Free the buffer for the next proc */
|
/* Free the buffer for the next proc */
|
||||||
OBJ_RELEASE(buf);
|
OBJ_RELEASE(buf);
|
||||||
} else if (OMPI_ERR_NOT_IMPLEMENTED == ret) {
|
} else if (OMPI_ERR_NOT_IMPLEMENTED == ret) {
|
||||||
|
nodeid = ORTE_NODEID_INVALID;
|
||||||
arch = ompi_proc_local_proc->proc_arch;
|
arch = ompi_proc_local_proc->proc_arch;
|
||||||
hostname = strdup("");
|
hostname = strdup("");
|
||||||
ret = ORTE_SUCCESS;
|
ret = ORTE_SUCCESS;
|
||||||
@ -268,7 +269,8 @@ ompi_proc_get_info(void)
|
|||||||
goto out;
|
goto out;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (ompi_proc_local_proc->proc_nodeid == proc->proc_nodeid) {
|
if ((ompi_proc_local_proc->proc_nodeid == proc->proc_nodeid) &&
|
||||||
|
(proc->proc_nodeid != ORTE_NODEID_INVALID)) {
|
||||||
proc->proc_flags |= OMPI_PROC_FLAG_LOCAL;
|
proc->proc_flags |= OMPI_PROC_FLAG_LOCAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user