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

Commit 030de75

Browse files
committed
orte/mpirun: disable -debug option
Since there's no support for launching a job under a debugger using mpirun in the 2.0 release, if the user tries to use -debug option with mpirun, print out a help message and abort job launch. Signed-off-by: Howard Pritchard <[email protected]>
1 parent 11b5b18 commit 030de75

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

orte/tools/orterun/help-orterun.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,3 +660,10 @@ method and try launching your job again.
660660

661661
Your job will now abort.
662662
#
663+
[no_debugger_launch_support]
664+
This version of Open MPI is known to have a problem using the "--debug"
665+
option to mpirun, and has therefore disabled it. This functionality will
666+
be restored in a future version of Open MPI.
667+
668+
Please see https://github.com/open-mpi/ompi/issues/1225 for details.
669+

orte/tools/orterun/orterun.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,16 @@ static int parse_globals(int argc, char* argv[], opal_cmd_line_t *cmd_line)
11471147
/* Do we want a user-level debugger? */
11481148

11491149
if (orterun_globals.debugger) {
1150+
#if 0
1151+
/* see https://github.com/open-mpi/ompi/issues/1225
1152+
* Once things are fixed, the orte_show_help/exit can be removed
1153+
* and this code re-enabled.
1154+
*/
11501155
run_debugger(orte_basename, cmd_line, argc, argv, orterun_globals.num_procs);
1156+
#else
1157+
orte_show_help("help-orterun.txt", "no_debugger_launch_support", false);
1158+
exit(-1);
1159+
#endif
11511160
}
11521161

11531162
/* if recovery was disabled on the cmd line, do so */

0 commit comments

Comments
 (0)