Skip to content

Commit 500c8be

Browse files
committed
pmix: fix PMIx envar name for the installation prefix.
Signed-off-by: Artem Polyakov <[email protected]>
1 parent 31171d0 commit 500c8be

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

opal/mca/pmix/pmix2x/pmix2x_client.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
44
* Copyright (c) 2014-2017 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
6-
* Copyright (c) 2014-2015 Mellanox Technologies, Inc.
6+
* Copyright (c) 2014-2017 Mellanox Technologies, Inc.
77
* All rights reserved.
88
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
99
* Copyright (c) 2016 Los Alamos National Security, LLC. All rights
@@ -78,8 +78,9 @@ int pmix2x_client_init(opal_list_t *ilist)
7878
asprintf(&dbgvalue, "PMIX_DEBUG=%d", dbg);
7979
putenv(dbgvalue);
8080
}
81-
if (NULL != (evar = getenv("OPAL_PREFIX"))) {
82-
opal_setenv("PMIX_PREFIX", evar, false, &environ);
81+
if ((NULL != (evar = getenv("OPAL_PREFIX"))) &&
82+
(NULL == getenv("PMIX_INSTALL_PREFIX"))) {
83+
opal_setenv("PMIX_INSTALL_PREFIX", evar, false, &environ);
8384
}
8485
}
8586

opal/mca/pmix/pmix2x/pmix2x_server_south.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright (c) 2014-2017 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
7-
* Copyright (c) 2014 Mellanox Technologies, Inc.
7+
* Copyright (c) 2014-2017 Mellanox Technologies, Inc.
88
* All rights reserved.
99
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
1010
* Copyright (c) 2017 Los Alamos National Security, LLC. All rights
@@ -109,8 +109,9 @@ int pmix2x_server_init(opal_pmix_server_module_t *module,
109109
asprintf(&dbgvalue, "PMIX_DEBUG=%d", dbg);
110110
putenv(dbgvalue);
111111
}
112-
if (NULL != (evar = getenv("OPAL_PREFIX"))) {
113-
opal_setenv("PMIX_PREFIX", evar, false, &environ);
112+
if ((NULL != (evar = getenv("OPAL_PREFIX"))) &&
113+
(NULL == getenv("PMIX_INSTALL_PREFIX"))) {
114+
opal_setenv("PMIX_INSTALL_PREFIX", evar, false, &environ);
114115
}
115116
}
116117
++opal_pmix_base.initialized;

0 commit comments

Comments
 (0)