Skip to content

Commit 1b55d14

Browse files
committed
plm/alps: remove unneded 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. Signed-off-by: Howard Pritchard <[email protected]>
1 parent ae0de54 commit 1b55d14

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
@@ -151,20 +151,6 @@ static int plm_alps_init(void)
151151
*/
152152
static int plm_alps_launch_job(orte_job_t *jdata)
153153
{
154-
orte_app_context_t *app;
155-
156-
for (int i = 0 ; i < jdata->apps->size ; ++i) {
157-
int env_count;
158-
159-
if (NULL == (app = (orte_app_context_t*)opal_pointer_array_get_item(jdata->apps, i))) {
160-
continue;
161-
}
162-
163-
for (env_count = 0 ; app->env && app->env[env_count] ; ++env_count);
164-
/* disable PMI for the application. this will prevent the pmi library from printing useless warnings */
165-
opal_argv_append (&env_count, &app->env, "PMI_NO_FORK=1");
166-
opal_argv_append (&env_count, &app->env, "PMI_NO_PREINITIALIZE=1");
167-
}
168154

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

0 commit comments

Comments
 (0)