If we are using hwthread cpus, then default to binding there, letting the user override to whatever they want
Этот коммит содержится в:
родитель
cf3ff3fe58
Коммит
123fdd603f
@ -520,8 +520,14 @@ int opal_hwloc_base_set_binding_policy(opal_binding_policy_t *policy, char *spec
|
|||||||
|
|
||||||
/* binding specification */
|
/* binding specification */
|
||||||
if (NULL == spec) {
|
if (NULL == spec) {
|
||||||
/* default to bind-to core, and that no binding policy was specified */
|
if (opal_hwloc_use_hwthreads_as_cpus) {
|
||||||
OPAL_SET_BINDING_POLICY(tmp, OPAL_BIND_TO_CORE);
|
/* default to bind-to hwthread */
|
||||||
|
OPAL_SET_BINDING_POLICY(tmp, OPAL_BIND_TO_HWTHREAD);
|
||||||
|
} else {
|
||||||
|
/* default to bind-to core */
|
||||||
|
OPAL_SET_BINDING_POLICY(tmp, OPAL_BIND_TO_CORE);
|
||||||
|
}
|
||||||
|
/* note that no binding policy was specified */
|
||||||
tmp &= ~OPAL_BIND_GIVEN;
|
tmp &= ~OPAL_BIND_GIVEN;
|
||||||
} else if (0 == strncasecmp(spec, "none", strlen("none"))) {
|
} else if (0 == strncasecmp(spec, "none", strlen("none"))) {
|
||||||
OPAL_SET_BINDING_POLICY(tmp, OPAL_BIND_TO_NONE);
|
OPAL_SET_BINDING_POLICY(tmp, OPAL_BIND_TO_NONE);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user