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

Commit e00eb11

Browse files
committed
Merge pull request #421 from hppritcha/topic/failure_to_launch_fixes
plm/alps: fix orted based launch failures.
2 parents a681f77 + 8002391 commit e00eb11

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

orte/mca/plm/alps/plm_alps_module.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,17 @@ static void launch_daemons(int fd, short args, void *cbdata)
292292
opal_argv_append(&argc, &argv, "1");
293293
opal_argv_append(&argc, &argv, "-cc");
294294
opal_argv_append(&argc, &argv, "none");
295+
/*
296+
* stuff below is necessary in the event that we've sadly configured Open MPI with --disable-dlopen,
297+
* which results in the orted's being linked against all kinds of unnecessary cray libraries, including
298+
* the cray pmi, which has a ctor that cause bad things if run when using mpirun/orted based launch.
299+
*
300+
* Code below adds env. variables for aprun to forward which suppresses the action of the Cray PMI ctor.
301+
*/
302+
opal_argv_append(&argc, &argv, "-e");
303+
opal_argv_append(&argc, &argv, "PMI_NO_PREINITIALIZE=1");
304+
opal_argv_append(&argc, &argv, "-e");
305+
opal_argv_append(&argc, &argv, "PMI_NO_FORK=1");
295306

296307
/* create nodelist */
297308
nodelist_argv = NULL;

0 commit comments

Comments
 (0)