1
1

When a user asks for cpus/rank > 1 and only has one slot, we need to ensure we always map at least one process when they don't tell us -np

cmr=v1.8.2:reviewer=rhc:subject=correct num_procs in corner case

This commit was SVN r32142.
Этот коммит содержится в:
Ralph Castain 2014-07-04 17:00:35 +00:00
родитель 832fa4a028
Коммит 5bb5b22573

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

@ -133,6 +133,12 @@ static int orte_rmaps_rr_map(orte_job_t *jdata)
* mapped nodes, taking into account the number of cpus/rank
*/
app->num_procs = num_slots / orte_rmaps_base.cpus_per_rank;
/* sometimes, we have only one "slot" assigned, but may
* want more than one cpu/rank - so ensure we always wind
* up with at least one proc */
if (0 == app->num_procs) {
app->num_procs = 1;
}
}
/* Make assignments */