Fix mapping directive checks
Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
родитель
31e98401c7
Коммит
1e4bffd937
5
orte/mca/rmaps/base/rmaps_base_map_job.c
Обычный файл → Исполняемый файл
5
orte/mca/rmaps/base/rmaps_base_map_job.c
Обычный файл → Исполняемый файл
@ -195,9 +195,8 @@ void orte_rmaps_base_map_job(int fd, short args, void *cbdata)
|
|||||||
/* if the user explicitly mapped-by some object, then we default
|
/* if the user explicitly mapped-by some object, then we default
|
||||||
* to binding to that object */
|
* to binding to that object */
|
||||||
orte_mapping_policy_t mpol;
|
orte_mapping_policy_t mpol;
|
||||||
mpol = ORTE_GET_MAPPING_POLICY(orte_rmaps_base.mapping);
|
mpol = ORTE_GET_MAPPING_POLICY(jdata->map->mapping);
|
||||||
if (ORTE_MAPPING_POLICY_IS_SET(jdata->map->mapping) &&
|
if (ORTE_MAPPING_GIVEN & ORTE_GET_MAPPING_DIRECTIVE(jdata->map->mapping)) {
|
||||||
ORTE_MAPPING_BYBOARD < mpol && mpol < ORTE_MAPPING_BYSLOT) {
|
|
||||||
if (ORTE_MAPPING_BYHWTHREAD == mpol) {
|
if (ORTE_MAPPING_BYHWTHREAD == mpol) {
|
||||||
OPAL_SET_DEFAULT_BINDING_POLICY(jdata->map->binding, OPAL_BIND_TO_HWTHREAD);
|
OPAL_SET_DEFAULT_BINDING_POLICY(jdata->map->binding, OPAL_BIND_TO_HWTHREAD);
|
||||||
} else if (ORTE_MAPPING_BYCORE == mpol) {
|
} else if (ORTE_MAPPING_BYCORE == mpol) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user