Check for OPAL_PREFIX and set corresponding PMIX_PREFIX if found
Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
родитель
ebc4eb347c
Коммит
3744967adb
@ -9,6 +9,7 @@
|
||||
* University of Stuttgart. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2017 Intel, Inc. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -28,6 +29,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "opal/util/opal_environ.h"
|
||||
#include "orte/mca/errmgr/errmgr.h"
|
||||
#include "orte/util/show_help.h"
|
||||
#include "orte/runtime/orte_wait.h"
|
||||
@ -39,6 +41,7 @@ int orte_ess_base_std_prolog(void)
|
||||
{
|
||||
int ret;
|
||||
char *error = NULL;
|
||||
char *evar;
|
||||
|
||||
/* Initialize the ORTE data type support */
|
||||
if (ORTE_SUCCESS != (ret = orte_dt_init())) {
|
||||
@ -56,6 +59,10 @@ int orte_ess_base_std_prolog(void)
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
/* check for OPAL_PREFIX */
|
||||
if (NULL != (evar = getenv("OPAL_PREFIX"))) {
|
||||
opal_setenv("PMIX_PREFIX", evar, false, &environ);
|
||||
}
|
||||
|
||||
return ORTE_SUCCESS;
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user