From 9838d6dea5afec7035c04fdbe982ac5493a6b51b Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Thu, 15 Sep 2016 13:57:23 +0900 Subject: [PATCH] ess/singleton: when forking hnp, use the PMIX_NAMESPACE sent by the hnp as the jobid (cherry picked from commit open-mpi/ompi@11ebf3ab23bdaeb0ec96818c119364c6d837cd3b) --- orte/mca/ess/singleton/ess_singleton_module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orte/mca/ess/singleton/ess_singleton_module.c b/orte/mca/ess/singleton/ess_singleton_module.c index d373f859b8..1d30fb88da 100644 --- a/orte/mca/ess/singleton/ess_singleton_module.c +++ b/orte/mca/ess/singleton/ess_singleton_module.c @@ -158,6 +158,8 @@ static int rte_init(void) /* for convenience, push the pubsub version of this param into the environ */ opal_setenv (OPAL_MCA_PREFIX"pubsub_orte_server", orte_process_info.my_hnp_uri, 1, &environ); } else { + /* we want to use PMIX_NAMESPACE that will be sent by the hnp as a jobid */ + opal_setenv(OPAL_MCA_PREFIX"orte_launch", "1", true, &environ); /* spawn our very own HNP to support us */ if (ORTE_SUCCESS != (rc = fork_hnp())) { ORTE_ERROR_LOG(rc);