1
1

fix debugger co-location launching

This commit was SVN r25136.
Этот коммит содержится в:
Nathan Hjelm 2011-09-13 15:08:03 +00:00
родитель d6682523f6
Коммит 079ccdf8b1

Просмотреть файл

@ -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);