Skip to content

Commit 8ed6de2

Browse files
committed
ess/singleton: when forking hnp, use the PMIX_NAMESPACE sent by the hnp
as the jobid (cherry picked from commit 11ebf3a)
1 parent d479de3 commit 8ed6de2

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)