From 02b97146deaf947d2fa1ff690fef207a2d189961 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 20 Feb 2018 17:10:44 +0900 Subject: [PATCH] orted_submit: fix the --oversubscribe option do set the ORTE_MAPPING_SUBSCRIBE_GIVEN directive when --oversubscribe is used Signed-off-by: Gilles Gouaillardet --- orte/orted/orted_submit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orte/orted/orted_submit.c b/orte/orted/orted_submit.c index 9c174009c2..a1ad7d7b52 100644 --- a/orte/orted/orted_submit.c +++ b/orte/orted/orted_submit.c @@ -15,7 +15,7 @@ * Copyright (c) 2007-2017 Los Alamos National Security, LLC. All rights * reserved. * Copyright (c) 2013-2018 Intel, Inc. All rights reserved. - * Copyright (c) 2015-2017 Research Organization for Information Science + * Copyright (c) 2015-2018 Research Organization for Information Science * and Technology (RIST). All rights reserved. * Copyright (c) 2017 IBM Corporation. All rights reserved. * $COPYRIGHT$ @@ -917,6 +917,7 @@ int orte_submit_job(char *argv[], int *index, } if (orte_cmd_options.oversubscribe) { ORTE_UNSET_MAPPING_DIRECTIVE(jdata->map->mapping, ORTE_MAPPING_NO_OVERSUBSCRIBE); + ORTE_SET_MAPPING_DIRECTIVE(jdata->map->mapping, ORTE_MAPPING_SUBSCRIBE_GIVEN); } if (orte_cmd_options.report_bindings) { orte_set_attribute(&jdata->attributes, ORTE_JOB_REPORT_BINDINGS, ORTE_ATTR_GLOBAL, NULL, OPAL_BOOL);