From 8afa1433b835e19745dab88d819ab169c56148d1 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 14 Jun 2017 13:22:01 -0700 Subject: [PATCH] Only set the "bound" flag if we wre actually bound Signed-off-by: Ralph Castain --- orte/mca/schizo/ompi/schizo_ompi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/orte/mca/schizo/ompi/schizo_ompi.c b/orte/mca/schizo/ompi/schizo_ompi.c index e01198a7c9..af733b8825 100644 --- a/orte/mca/schizo/ompi/schizo_ompi.c +++ b/orte/mca/schizo/ompi/schizo_ompi.c @@ -970,7 +970,9 @@ static int setup_fork(orte_job_t *jdata, * any binding policy was applied by us (e.g., so that * MPI_INIT doesn't try to bind itself) */ - opal_setenv("OMPI_MCA_orte_bound_at_launch", "1", true, &app->env); + if (OPAL_BIND_TO_NONE != OPAL_GET_BINDING_POLICY(jdata->map->binding)) { + opal_setenv("OMPI_MCA_orte_bound_at_launch", "1", true, &app->env); + } /* tell the ESS to avoid the singleton component - but don't override * anything that may have been provided elsewhere