Per request from Gilles and discussion at devel conference, have the --oversubscribe option automatically set both oversubscribe and overload-allowed properties as this is likely what the user intended.
cmr=v1.8.2:reviewer=rhc:subject=automatically set oversub/load This commit was SVN r32072.
Этот коммит содержится в:
родитель
fb9d063be2
Коммит
5f6be06b54
@ -183,7 +183,7 @@ static int orte_rmaps_base_register(mca_base_register_flag_t flags)
|
||||
|
||||
rmaps_base_oversubscribe = false;
|
||||
(void) mca_base_var_register("orte", "rmaps", "base", "oversubscribe",
|
||||
"If true, then allow oversubscription of nodes",
|
||||
"If true, then allow oversubscription of nodes and overloading of processing elements",
|
||||
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
|
||||
OPAL_INFO_LVL_9,
|
||||
MCA_BASE_VAR_SCOPE_READONLY, &rmaps_base_oversubscribe);
|
||||
@ -515,6 +515,8 @@ static int orte_rmaps_base_open(mca_base_open_flag_t flags)
|
||||
}
|
||||
ORTE_UNSET_MAPPING_DIRECTIVE(orte_rmaps_base.mapping, ORTE_MAPPING_NO_OVERSUBSCRIBE);
|
||||
ORTE_SET_MAPPING_DIRECTIVE(orte_rmaps_base.mapping, ORTE_MAPPING_SUBSCRIBE_GIVEN);
|
||||
/* also set the overload allowed flag */
|
||||
opal_hwloc_binding_policy |= OPAL_BIND_ALLOW_OVERLOAD;
|
||||
}
|
||||
|
||||
/* should we display a detailed (developer-quality) version of the map after determining it? */
|
||||
|
@ -332,7 +332,7 @@ static opal_cmd_line_init_t cmd_line_init[] = {
|
||||
"Nodes are not to be oversubscribed, even if the system supports such operation"},
|
||||
{ "rmaps_base_oversubscribe", '\0', "oversubscribe", "oversubscribe", 0,
|
||||
NULL, OPAL_CMD_LINE_TYPE_BOOL,
|
||||
"Nodes are allowed to be oversubscribed, even on a managed system"},
|
||||
"Nodes are allowed to be oversubscribed, even on a managed system, and overloading of processing elements"},
|
||||
{ "rmaps_base_cpus_per_rank", '\0', "cpus-per-proc", "cpus-per-proc", 1,
|
||||
NULL, OPAL_CMD_LINE_TYPE_INT,
|
||||
"Number of cpus to use for each process [default=1]" },
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user