Skip to content

Commit e0fef39

Browse files
author
rhc54
committed
Merge pull request #1670 from rhc54/topic/dashhost
In MPMD case, add slots given to each of the executables instead of overwriting
2 parents 7f65c2b + ca69403 commit e0fef39

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

orte/util/dash_host/dash_host.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,12 @@ int orte_util_add_dash_host_nodes(opal_list_t *nodes,
266266
if (0 == strcmp(nd->name, node->name)) {
267267
found = true;
268268
OPAL_OUTPUT_VERBOSE((1, orte_ras_base_framework.framework_output,
269-
"%s dashhost: found existing node %s on input list - ignoring",
269+
"%s dashhost: found existing node %s on input list - adding slots",
270270
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), node->name));
271271
/* transfer across the number of slots */
272-
node->slots = nd->slots;
272+
node->slots += nd->slots;
273273
if (ORTE_FLAG_TEST(nd, ORTE_NODE_FLAG_SLOTS_GIVEN)) {
274274
ORTE_FLAG_SET(node, ORTE_NODE_FLAG_SLOTS_GIVEN);
275-
node->slots = nd->slots;
276275
}
277276
break;
278277
}

0 commit comments

Comments
 (0)