From 079ccdf8b16c14d7ab69e9ba74bca127283bacda Mon Sep 17 00:00:00 2001 From: Nathan Hjelm Date: Tue, 13 Sep 2011 15:08:03 +0000 Subject: [PATCH] fix debugger co-location launching This commit was SVN r25136. --- orte/mca/debugger/mpirx/mpirx.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/orte/mca/debugger/mpirx/mpirx.c b/orte/mca/debugger/mpirx/mpirx.c index c98cb2265e..fc02cefc9c 100644 --- a/orte/mca/debugger/mpirx/mpirx.c +++ b/orte/mca/debugger/mpirx/mpirx.c @@ -311,11 +311,9 @@ static void attach_debugger(int fd, short event, void *arg) } else { app->app = strdup((char*)MPIR_executable_path); } - if (orte_hnp_is_allocated) { - app->num_procs = orte_process_info.num_procs; - } else { - app->num_procs = orte_process_info.num_procs - 1; - } + + jdata->state = ORTE_JOB_STATE_INIT; + opal_argv_append_nosize(&app->argv, app->app); build_debugger_args(app); opal_pointer_array_add(jdata->apps, app); @@ -325,6 +323,7 @@ static void attach_debugger(int fd, short event, void *arg) */ jdata->map = OBJ_NEW(orte_job_map_t); jdata->map->policy = ORTE_MAPPING_BYNODE; + jdata->map->npernode = 1; /* now go ahead and spawn this job */ if (ORTE_SUCCESS != (rc = orte_plm.spawn(jdata))) { ORTE_ERROR_LOG(rc);