Skip to content

Commit 7d07659

Browse files
author
Ralph Castain
authored
Merge pull request #3699 from rhc54/topic/bound
Only set the "bound" flag if we wre actually bound
2 parents e9d533e + 8afa143 commit 7d07659

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

orte/mca/schizo/ompi/schizo_ompi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,9 @@ static int setup_fork(orte_job_t *jdata,
970970
* any binding policy was applied by us (e.g., so that
971971
* MPI_INIT doesn't try to bind itself)
972972
*/
973-
opal_setenv("OMPI_MCA_orte_bound_at_launch", "1", true, &app->env);
973+
if (OPAL_BIND_TO_NONE != OPAL_GET_BINDING_POLICY(jdata->map->binding)) {
974+
opal_setenv("OMPI_MCA_orte_bound_at_launch", "1", true, &app->env);
975+
}
974976

975977
/* tell the ESS to avoid the singleton component - but don't override
976978
* anything that may have been provided elsewhere

0 commit comments

Comments
 (0)