We really need to send *all* the daemon info whenever the daemon job has changed as new daemons need a full nidmap
cmr=v1.8.2:reviewer=jsquyres This commit was SVN r31948.
Этот коммит содержится в:
родитель
c5384d44d7
Коммит
b771388fa7
@ -324,23 +324,10 @@ int orte_util_encode_nodemap(opal_byte_object_t *boptr, bool update)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* only send info on nodes that have daemons on them, and
|
|
||||||
* only regarding daemons that have changed - i.e., new
|
|
||||||
* daemons since the last time we sent the info - so we
|
|
||||||
* minimize the size of the nidmap message. The daemon
|
|
||||||
* will maintain a global picture of the overall nidmap
|
|
||||||
* as it receives updates, and pass that down to the procs
|
|
||||||
*/
|
|
||||||
for (i=0; i < daemons->procs->size; i++) {
|
for (i=0; i < daemons->procs->size; i++) {
|
||||||
if (NULL == (dmn = (orte_proc_t*)opal_pointer_array_get_item(daemons->procs, i))) {
|
if (NULL == (dmn = (orte_proc_t*)opal_pointer_array_get_item(daemons->procs, i))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* if we want an update nidmap and this daemon hasn't
|
|
||||||
* been updated, then skip it
|
|
||||||
*/
|
|
||||||
if (update && !ORTE_FLAG_TEST(dmn, ORTE_PROC_FLAG_UPDATED)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
/* if the daemon doesn't have a node, that's an error */
|
/* if the daemon doesn't have a node, that's an error */
|
||||||
if (NULL == (node = dmn->node)) {
|
if (NULL == (node = dmn->node)) {
|
||||||
opal_output(0, "DAEMON %s HAS NO NODE", ORTE_NAME_PRINT(&dmn->name));
|
opal_output(0, "DAEMON %s HAS NO NODE", ORTE_NAME_PRINT(&dmn->name));
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user