Move the detection of OPAL_PREFIX and subsequent posting of PMIX_PREFIX to the internal integration code for PMIx so we only do this when running with the embeddied PMIx
Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
родитель
e94786f4b7
Коммит
8f34fa4a56
@ -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"
|
||||
@ -65,6 +66,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");
|
||||
@ -76,6 +78,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 */
|
||||
|
@ -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"
|
||||
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user