Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions opal/mca/pmix/pmix2x/pmix2x_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "opal/hash_string.h"
#include "opal/threads/threads.h"
#include "opal/util/argv.h"
#include "opal/util/opal_environ.h"
#include "opal/util/proc.h"

#include "opal/mca/pmix/base/base.h"
Expand Down Expand Up @@ -64,6 +65,7 @@ int pmix2x_client_init(opal_list_t *ilist)
pmix_info_t *pinfo;
size_t ninfo, n;
opal_value_t *ival;
char *evar;

opal_output_verbose(1, opal_pmix_base_framework.framework_output,
"PMIx_client init");
Expand All @@ -75,6 +77,9 @@ int pmix2x_client_init(opal_list_t *ilist)
asprintf(&dbgvalue, "PMIX_DEBUG=%d", dbg);
putenv(dbgvalue);
}
if (NULL != (evar = getenv("OPAL_PREFIX"))) {
opal_setenv("PMIX_PREFIX", evar, false, &environ);
}
}

/* convert the incoming list to info structs */
Expand Down
5 changes: 5 additions & 0 deletions opal/mca/pmix/pmix2x/pmix2x_server_south.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "opal/util/argv.h"
#include "opal/util/error.h"
#include "opal/util/output.h"
#include "opal/util/opal_environ.h"
#include "opal/util/proc.h"
#include "opal/util/show_help.h"
#include "opal/mca/pmix/base/base.h"
Expand Down Expand Up @@ -99,6 +100,7 @@ int pmix2x_server_init(opal_pmix_server_module_t *module,
opal_pmix2x_event_t *event;
opal_pmix2x_jobid_trkr_t *job;
opal_pmix_lock_t lk;
char *evar;

OPAL_PMIX_ACQUIRE_THREAD(&opal_pmix_base.lock);

Expand All @@ -107,6 +109,9 @@ int pmix2x_server_init(opal_pmix_server_module_t *module,
asprintf(&dbgvalue, "PMIX_DEBUG=%d", dbg);
putenv(dbgvalue);
}
if (NULL != (evar = getenv("OPAL_PREFIX"))) {
opal_setenv("PMIX_PREFIX", evar, false, &environ);
}
}
++opal_pmix_base.initialized;

Expand Down