1
1

v4.1.x: schizo/jsm: Disable binding when direct launched

Signed-off-by: Joshua Hursey <jhursey@us.ibm.com>
Этот коммит содержится в:
Joshua Hursey 2020-07-13 15:31:21 -05:00
родитель 0d1af43851
Коммит c71e1fa1db
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 2C75E2D81A86FA33

Просмотреть файл

@ -1,7 +1,7 @@
/*
* Copyright (c) 2016-2017 Intel, Inc. All rights reserved.
* Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved.
* Copyright (c) 2017-2019 IBM Corporation. All rights reserved.
* Copyright (c) 2017-2020 IBM Corporation. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -78,6 +78,13 @@ static orte_schizo_launch_environ_t check_launch_environment(void)
* If we did then the logic should be placed here.
*/
/* if we are direct-launched by JSM, then disable binding */
opal_argv_append_nosize(&pushed_envs, OPAL_MCA_PREFIX"hwloc_base_binding_policy");
opal_argv_append_nosize(&pushed_vals, "none");
/* indicate we are externally bound so we won't try to do it ourselves */
opal_argv_append_nosize(&pushed_envs, OPAL_MCA_PREFIX"orte_externally_bound");
opal_argv_append_nosize(&pushed_vals, "1");
opal_output_verbose(1, orte_schizo_base_framework.framework_output,
"schizo:jsm DECLARED AS %s", orte_schizo_base_print_env(myenv));
if (NULL != pushed_envs) {