Skip to content

Commit cc2a648

Browse files
author
rhc54
authored
Merge pull request #1862 from rhc54/topic/mapping
Fix a bug in the handling of nper<foo> when -host or -hostfile was gi…
2 parents aa78f90 + ddd0d05 commit cc2a648

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

orte/mca/plm/base/plm_base_launch_support.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ void orte_plm_base_set_slots(orte_node_t *node)
107107
/* must be a number */
108108
node->slots = strtol(orte_set_slots, NULL, 10);
109109
}
110+
/* mark the node as having its slots "given" */
111+
ORTE_FLAG_SET(node, ORTE_NODE_FLAG_SLOTS_GIVEN);
110112
}
111113

112114
void orte_plm_base_daemons_reported(int fd, short args, void *cbdata)

orte/mca/rmaps/base/rmaps_base_map_job.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ void orte_rmaps_base_map_job(int fd, short args, void *cbdata)
105105
}
106106
}
107107
OPAL_LIST_DESTRUCT(&nodes);
108-
nprocs += slots;
108+
if (ORTE_MAPPING_PPR != ORTE_GET_MAPPING_POLICY(jdata->map->mapping)) {
109+
nprocs += slots;
110+
}
109111
} else {
110112
nprocs += app->num_procs;
111113
}

0 commit comments

Comments
 (0)