Skip to content

Commit dec23f3

Browse files
author
rhc54
committed
Merge pull request #1489 from rhc54/topic/bind
Correct the binding for the --map-by node case
2 parents 6e6bbfd + cdd3dc9 commit dec23f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

orte/mca/rmaps/base/rmaps_base_map_job.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ void orte_rmaps_base_map_job(int fd, short args, void *cbdata)
110110
opal_output_verbose(5, orte_rmaps_base_framework.framework_output,
111111
"mca:rmaps: nprocs %s",
112112
ORTE_VPID_PRINT(nprocs));
113-
if (ORTE_MAPPING_GIVEN & ORTE_GET_MAPPING_DIRECTIVE(orte_rmaps_base.mapping)) {
113+
if (ORTE_MAPPING_GIVEN & ORTE_GET_MAPPING_DIRECTIVE(orte_rmaps_base.mapping) &&
114+
ORTE_MAPPING_BYNODE != ORTE_GET_MAPPING_POLICY(orte_rmaps_base.mapping)) {
114115
opal_output_verbose(5, orte_rmaps_base_framework.framework_output,
115116
"mca:rmaps mapping given - using default");
116117
map->mapping = orte_rmaps_base.mapping;

0 commit comments

Comments
 (0)