Skip to content

Commit 1e4bffd

Browse files
author
Ralph Castain
committed
Fix mapping directive checks
Signed-off-by: Ralph Castain <[email protected]>
1 parent 31e9840 commit 1e4bffd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

orte/mca/rmaps/base/rmaps_base_map_job.c

100644100755
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,8 @@ void orte_rmaps_base_map_job(int fd, short args, void *cbdata)
195195
/* if the user explicitly mapped-by some object, then we default
196196
* to binding to that object */
197197
orte_mapping_policy_t mpol;
198-
mpol = ORTE_GET_MAPPING_POLICY(orte_rmaps_base.mapping);
199-
if (ORTE_MAPPING_POLICY_IS_SET(jdata->map->mapping) &&
200-
ORTE_MAPPING_BYBOARD < mpol && mpol < ORTE_MAPPING_BYSLOT) {
198+
mpol = ORTE_GET_MAPPING_POLICY(jdata->map->mapping);
199+
if (ORTE_MAPPING_GIVEN & ORTE_GET_MAPPING_DIRECTIVE(jdata->map->mapping)) {
201200
if (ORTE_MAPPING_BYHWTHREAD == mpol) {
202201
OPAL_SET_DEFAULT_BINDING_POLICY(jdata->map->binding, OPAL_BIND_TO_HWTHREAD);
203202
} else if (ORTE_MAPPING_BYCORE == mpol) {

0 commit comments

Comments
 (0)