From 30b3bc6761ef5d85cd8ed9336dbc8937a6e3e2e5 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 29 Oct 2008 16:00:48 +0000 Subject: [PATCH] Minor update - provide one more helpful hint regarding stdin target out-of-range, ensure we exit cleanly since daemons won't have been launched. This commit was SVN r19847. --- orte/mca/plm/base/help-plm-base.txt | 8 +++++--- orte/mca/plm/base/plm_base_launch_support.c | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/orte/mca/plm/base/help-plm-base.txt b/orte/mca/plm/base/help-plm-base.txt index a6112fc14c..e7e6dabd41 100644 --- a/orte/mca/plm/base/help-plm-base.txt +++ b/orte/mca/plm/base/help-plm-base.txt @@ -76,12 +76,14 @@ We are truly sorry for the inconvenience. # [stdin-target-out-of-range] The requested stdin target is out of range for this job - it points -to a process rank that is greater than the number of process in the +to a process rank that is greater than the number of processes in the job. Specified target: %s Number of procs: %s This could be caused by specifying a negative number for the stdin -target, or by mistyping the desired rank. Please correct the cmd line -and try again. +target, or by mistyping the desired rank. Remember that MPI ranks begin +with 0, not 1. + +Please correct the cmd line and try again. diff --git a/orte/mca/plm/base/plm_base_launch_support.c b/orte/mca/plm/base/plm_base_launch_support.c index b5105b3b56..3ba2b876b3 100644 --- a/orte/mca/plm/base/plm_base_launch_support.c +++ b/orte/mca/plm/base/plm_base_launch_support.c @@ -127,8 +127,8 @@ int orte_plm_base_setup_job(orte_job_t *jdata) orte_show_help("help-plm-base.txt", "stdin-target-out-of-range", true, ORTE_VPID_PRINT(jdata->stdin_target), ORTE_VPID_PRINT(jdata->num_procs)); - ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); - orte_trigger_event(&orte_exit); + orte_finalize(); + exit(ORTE_ERROR_DEFAULT_EXIT_CODE); } /*** RHC: USER REQUEST TO TIE-OFF STDXXX TO /DEV/NULL