From 030de754dfbd7ef7f5ba83268221d51970f1c8a9 Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Wed, 20 Jan 2016 17:25:29 -0700 Subject: [PATCH] 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 --- orte/tools/orterun/help-orterun.txt | 7 +++++++ orte/tools/orterun/orterun.c | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/orte/tools/orterun/help-orterun.txt b/orte/tools/orterun/help-orterun.txt index fef5f0a532..2ad4ab4488 100644 --- a/orte/tools/orterun/help-orterun.txt +++ b/orte/tools/orterun/help-orterun.txt @@ -660,3 +660,10 @@ method and try launching your job again. Your job will now abort. # +[no_debugger_launch_support] +This version of Open MPI is known to have a problem using the "--debug" +option to mpirun, and has therefore disabled it. This functionality will +be restored in a future version of Open MPI. + +Please see https://github.com/open-mpi/ompi/issues/1225 for details. + diff --git a/orte/tools/orterun/orterun.c b/orte/tools/orterun/orterun.c index 53f1788506..e86b79e1d5 100644 --- a/orte/tools/orterun/orterun.c +++ b/orte/tools/orterun/orterun.c @@ -1147,7 +1147,16 @@ static int parse_globals(int argc, char* argv[], opal_cmd_line_t *cmd_line) /* Do we want a user-level debugger? */ if (orterun_globals.debugger) { +#if 0 + /* see https://github.com/open-mpi/ompi/issues/1225 + * Once things are fixed, the orte_show_help/exit can be removed + * and this code re-enabled. + */ run_debugger(orte_basename, cmd_line, argc, argv, orterun_globals.num_procs); +#else + orte_show_help("help-orterun.txt", "no_debugger_launch_support", false); + exit(-1); +#endif } /* if recovery was disabled on the cmd line, do so */