Per patch from Tetsuya, allow the user to bind-to none when specifying multiple pe's/rank as requested by Reuti. This allows the user to reserve multiple "slots" in the allocation for each process while mapping, but not to bind the process to specific processing elements on the node.
Reviewed by rhc, so RM-approved to go across to v1.8.3 cmr=v1.8.3:reviewer=ompi-gk1.8 This commit was SVN r32701.
Этот коммит содержится в:
родитель
cc46b65a5e
Коммит
ea11e63f59
@ -388,14 +388,16 @@ static int orte_rmaps_base_open(mca_base_open_flag_t flags)
|
|||||||
*/
|
*/
|
||||||
if (OPAL_BINDING_POLICY_IS_SET(opal_hwloc_binding_policy)) {
|
if (OPAL_BINDING_POLICY_IS_SET(opal_hwloc_binding_policy)) {
|
||||||
if (opal_hwloc_use_hwthreads_as_cpus) {
|
if (opal_hwloc_use_hwthreads_as_cpus) {
|
||||||
if (OPAL_BIND_TO_HWTHREAD != OPAL_GET_BINDING_POLICY(opal_hwloc_binding_policy)) {
|
if (OPAL_BIND_TO_HWTHREAD != OPAL_GET_BINDING_POLICY(opal_hwloc_binding_policy) &&
|
||||||
|
OPAL_BIND_TO_NONE != OPAL_GET_BINDING_POLICY(opal_hwloc_binding_policy)) {
|
||||||
orte_show_help("help-orte-rmaps-base.txt", "mismatch-binding", true,
|
orte_show_help("help-orte-rmaps-base.txt", "mismatch-binding", true,
|
||||||
orte_rmaps_base.cpus_per_rank, "use-hwthreads-as-cpus",
|
orte_rmaps_base.cpus_per_rank, "use-hwthreads-as-cpus",
|
||||||
opal_hwloc_base_print_binding(opal_hwloc_binding_policy),
|
opal_hwloc_base_print_binding(opal_hwloc_binding_policy),
|
||||||
"bind-to hwthread");
|
"bind-to hwthread");
|
||||||
return ORTE_ERR_SILENT;
|
return ORTE_ERR_SILENT;
|
||||||
}
|
}
|
||||||
} else if (OPAL_BIND_TO_CORE != OPAL_GET_BINDING_POLICY(opal_hwloc_binding_policy)) {
|
} else if (OPAL_BIND_TO_CORE != OPAL_GET_BINDING_POLICY(opal_hwloc_binding_policy) &&
|
||||||
|
OPAL_BIND_TO_NONE != OPAL_GET_BINDING_POLICY(opal_hwloc_binding_policy)) {
|
||||||
orte_show_help("help-orte-rmaps-base.txt", "mismatch-binding", true,
|
orte_show_help("help-orte-rmaps-base.txt", "mismatch-binding", true,
|
||||||
orte_rmaps_base.cpus_per_rank, "cores as cpus",
|
orte_rmaps_base.cpus_per_rank, "cores as cpus",
|
||||||
opal_hwloc_base_print_binding(opal_hwloc_binding_policy),
|
opal_hwloc_base_print_binding(opal_hwloc_binding_policy),
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user