Skip to content

Commit 57044aa

Browse files
authored
Merge pull request #7934 from jjhursey/v4-jsm-no-bind
v4.1.x: schizo/jsm: Disable binding when direct launched
2 parents dfac9fa + c71e1fa commit 57044aa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

orte/mca/schizo/jsm/schizo_jsm.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2016-2017 Intel, Inc. All rights reserved.
33
* Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved.
4-
* Copyright (c) 2017-2019 IBM Corporation. All rights reserved.
4+
* Copyright (c) 2017-2020 IBM Corporation. All rights reserved.
55
* $COPYRIGHT$
66
*
77
* Additional copyrights may follow
@@ -78,6 +78,13 @@ static orte_schizo_launch_environ_t check_launch_environment(void)
7878
* If we did then the logic should be placed here.
7979
*/
8080

81+
/* if we are direct-launched by JSM, then disable binding */
82+
opal_argv_append_nosize(&pushed_envs, OPAL_MCA_PREFIX"hwloc_base_binding_policy");
83+
opal_argv_append_nosize(&pushed_vals, "none");
84+
/* indicate we are externally bound so we won't try to do it ourselves */
85+
opal_argv_append_nosize(&pushed_envs, OPAL_MCA_PREFIX"orte_externally_bound");
86+
opal_argv_append_nosize(&pushed_vals, "1");
87+
8188
opal_output_verbose(1, orte_schizo_base_framework.framework_output,
8289
"schizo:jsm DECLARED AS %s", orte_schizo_base_print_env(myenv));
8390
if (NULL != pushed_envs) {

0 commit comments

Comments
 (0)