1
1

Get -host to not use empty nodes called out specifically later in the -host list

This commit was SVN r19403.
Этот коммит содержится в:
Ralph Castain 2008-08-26 03:02:28 +00:00
родитель 6039e385cd
Коммит 28346b5bac

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

@ -288,12 +288,20 @@ int orte_util_filter_dash_host_nodes(opal_list_t *nodes,
node = (orte_node_t*)item; node = (orte_node_t*)item;
/* see if this node is empty */ /* see if this node is empty */
if (0 == node->slots_inuse) { if (0 == node->slots_inuse) {
/* check to see if it is specified later */
for (j=i+1; j < len_mapped_node; j++) {
if (0 == strcmp(mapped_nodes[j], node->name)) {
/* specified later - skip this one */
goto skipnode;
}
}
/* remove item from list */ /* remove item from list */
opal_list_remove_item(nodes, item); opal_list_remove_item(nodes, item);
/* xfer to keep list */ /* xfer to keep list */
opal_list_append(&keep, item); opal_list_append(&keep, item);
--num_empty; --num_empty;
} }
skipnode:
item = next; item = next;
} }
} else { } else {