Skip to content

Commit 03838f2

Browse files
author
rhc54
authored
Merge pull request #2019 from artpol84/fix_schizo
orte/schizo: fix binding detection in slurm component
2 parents b5c757e + 55ac3b0 commit 03838f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

orte/mca/schizo/slurm/schizo_slurm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2016 Intel, Inc. All rights reserved.
3+
* Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved.
34
* $COPYRIGHT$
45
*
56
* Additional copyrights may follow
@@ -93,7 +94,7 @@ static orte_schizo_launch_environ_t check_launch_environment(void)
9394
/* indicate we are externally bound so we won't try to do it ourselves */
9495
opal_argv_append_nosize(&pushed_envs, OPAL_MCA_PREFIX"orte_externally_bound");
9596
opal_argv_append_nosize(&pushed_vals, "1");
96-
} else if (0 == strcmp(bind, "mask_cpu")) {
97+
} else if (bind == strstr(bind, "mask_cpu")) {
9798
/* if the bind list is all F's, then the
9899
* user didn't specify anything */
99100
if (NULL != (list = getenv("SLURM_CPU_BIND_LIST")) &&

0 commit comments

Comments
 (0)