Skip to content

Commit 0829979

Browse files
author
Ralph Castain
authored
Merge pull request #3983 from rhc54/topic/prefix
Check for OPAL_PREFIX and set corresponding PMIX_PREFIX if found
2 parents eee494f + 3744967 commit 0829979

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

orte/mca/ess/base/ess_base_std_prolog.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* University of Stuttgart. All rights reserved.
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
12+
* Copyright (c) 2017 Intel, Inc. All rights reserved.
1213
* $COPYRIGHT$
1314
*
1415
* Additional copyrights may follow
@@ -28,6 +29,7 @@
2829
#include <unistd.h>
2930
#endif
3031

32+
#include "opal/util/opal_environ.h"
3133
#include "orte/mca/errmgr/errmgr.h"
3234
#include "orte/util/show_help.h"
3335
#include "orte/runtime/orte_wait.h"
@@ -39,6 +41,7 @@ int orte_ess_base_std_prolog(void)
3941
{
4042
int ret;
4143
char *error = NULL;
44+
char *evar;
4245

4346
/* Initialize the ORTE data type support */
4447
if (ORTE_SUCCESS != (ret = orte_dt_init())) {
@@ -56,6 +59,10 @@ int orte_ess_base_std_prolog(void)
5659
goto error;
5760
}
5861
}
62+
/* check for OPAL_PREFIX */
63+
if (NULL != (evar = getenv("OPAL_PREFIX"))) {
64+
opal_setenv("PMIX_PREFIX", evar, false, &environ);
65+
}
5966

6067
return ORTE_SUCCESS;
6168

0 commit comments

Comments
 (0)