Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 412d0d4

Browse files
committed
plm/alps: remove unneeded env. variable setting
In order to address issue #741, the orted's now are always launched with the Cray PMI environment variables PMI_NO_FORK PMI_NO_PREINITIALIZE set to disable running of the library's ctor. So there's no longer a need to set these for the application(s) being launched by the orted's. cherry-pick of open-mpi/ompi@1b55d14 Signed-off-by: Howard Pritchard <[email protected]>
1 parent c49a60d commit 412d0d4

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

orte/mca/plm/alps/plm_alps_module.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -155,20 +155,6 @@ static int plm_alps_init(void)
155155
*/
156156
static int plm_alps_launch_job(orte_job_t *jdata)
157157
{
158-
orte_app_context_t *app;
159-
160-
for (int i = 0 ; i < jdata->apps->size ; ++i) {
161-
int env_count;
162-
163-
if (NULL == (app = (orte_app_context_t*)opal_pointer_array_get_item(jdata->apps, i))) {
164-
continue;
165-
}
166-
167-
for (env_count = 0 ; app->env && app->env[env_count] ; ++env_count);
168-
/* disable PMI for the application. this will prevent the pmi library from printing useless warnings */
169-
opal_argv_append (&env_count, &app->env, "PMI_NO_FORK=1");
170-
opal_argv_append (&env_count, &app->env, "PMI_NO_PREINITIALIZE=1");
171-
}
172158

173159
if (ORTE_FLAG_TEST(jdata, ORTE_JOB_FLAG_RESTART)) {
174160
/* this is a restart situation - skip to the mapping stage */

0 commit comments

Comments
 (0)