From ca69403cc8876aeacc56ddaee1b246dbb4018dd1 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Sun, 15 May 2016 08:55:43 -0700 Subject: [PATCH] In MPMD case, add slots given to each of the executables instead of overwriting --- orte/util/dash_host/dash_host.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/orte/util/dash_host/dash_host.c b/orte/util/dash_host/dash_host.c index f9de972fe0..61fb2346ad 100644 --- a/orte/util/dash_host/dash_host.c +++ b/orte/util/dash_host/dash_host.c @@ -266,13 +266,12 @@ int orte_util_add_dash_host_nodes(opal_list_t *nodes, if (0 == strcmp(nd->name, node->name)) { found = true; OPAL_OUTPUT_VERBOSE((1, orte_ras_base_framework.framework_output, - "%s dashhost: found existing node %s on input list - ignoring", + "%s dashhost: found existing node %s on input list - adding slots", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), node->name)); /* transfer across the number of slots */ - node->slots = nd->slots; + node->slots += nd->slots; if (ORTE_FLAG_TEST(nd, ORTE_NODE_FLAG_SLOTS_GIVEN)) { ORTE_FLAG_SET(node, ORTE_NODE_FLAG_SLOTS_GIVEN); - node->slots = nd->slots; } break; }