Skip to content

Commit 64ced5a

Browse files
authored
Merge pull request open-mpi#1376 from ggouaillardet/topic/v2.x/singleton_jobid
v2.x: ess/singleton: when forking hnp, use the PMIX_NAMESPACE sent by the hnp
2 parents 9178779 + 9838d6d commit 64ced5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

orte/mca/ess/singleton/ess_singleton_module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ static int rte_init(void)
158158
/* for convenience, push the pubsub version of this param into the environ */
159159
opal_setenv (OPAL_MCA_PREFIX"pubsub_orte_server", orte_process_info.my_hnp_uri, 1, &environ);
160160
} else {
161+
/* we want to use PMIX_NAMESPACE that will be sent by the hnp as a jobid */
162+
opal_setenv(OPAL_MCA_PREFIX"orte_launch", "1", true, &environ);
161163
/* spawn our very own HNP to support us */
162164
if (ORTE_SUCCESS != (rc = fork_hnp())) {
163165
ORTE_ERROR_LOG(rc);

0 commit comments

Comments
 (0)