1
1

Use the proper exit code for mpirun to indicate an error when something goes wrong during launch (in scenarios where the procs don't report the problem directly themselves)

This commit was SVN r18121.
Этот коммит содержится в:
Ralph Castain 2008-04-10 09:15:08 +00:00
родитель e7d0dae89d
Коммит 57e3e86cda
9 изменённых файлов: 9 добавлений и 9 удалений

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

@ -398,7 +398,7 @@ cleanup:
/* check for failed launch - if so, force terminate */ /* check for failed launch - if so, force terminate */
if (failed_launch) { if (failed_launch) {
orte_plm_base_launch_failed(jdata->jobid, false, -1, 0, ORTE_JOB_STATE_FAILED_TO_START); orte_plm_base_launch_failed(jdata->jobid, false, -1, ORTE_ERROR_DEFAULT_EXIT_CODE, ORTE_JOB_STATE_FAILED_TO_START);
} }
return rc; return rc;

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

@ -561,7 +561,7 @@ launch_apps:
/* check for failed launch - if so, force terminate */ /* check for failed launch - if so, force terminate */
if (failed_launch) { if (failed_launch) {
orte_plm_base_launch_failed(jdata->jobid, false, -1, 0, ORTE_JOB_STATE_FAILED_TO_START); orte_plm_base_launch_failed(jdata->jobid, false, -1, ORTE_ERROR_DEFAULT_EXIT_CODE, ORTE_JOB_STATE_FAILED_TO_START);
} }
/* check for timing request - get stop time and process if so */ /* check for timing request - get stop time and process if so */

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

@ -566,7 +566,7 @@ cleanup:
/* check for failed launch - if so, force terminate */ /* check for failed launch - if so, force terminate */
if (failed_launch) { if (failed_launch) {
orte_plm_base_launch_failed(jdata->jobid, false, -1, 0, ORTE_JOB_STATE_FAILED_TO_START); orte_plm_base_launch_failed(jdata->jobid, false, -1, ORTE_ERROR_DEFAULT_EXIT_CODE, ORTE_JOB_STATE_FAILED_TO_START);
} }
return rc; return rc;

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

@ -347,7 +347,7 @@ cleanup:
/* check for failed launch - if so, force terminate */ /* check for failed launch - if so, force terminate */
if (failed_launch) { if (failed_launch) {
if (ORTE_SUCCESS != if (ORTE_SUCCESS !=
orte_plm_base_launch_failed(jdata->jobid, false, -1, 0, ORTE_JOB_STATE_FAILED_TO_START); orte_plm_base_launch_failed(jdata->jobid, false, -1, ORTE_ERROR_DEFAULT_EXIT_CODE, ORTE_JOB_STATE_FAILED_TO_START);
} }
return rc; return rc;

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

@ -861,7 +861,7 @@ launch_apps:
/* check for failed launch - if so, force terminate */ /* check for failed launch - if so, force terminate */
if( failed_launch ) { if( failed_launch ) {
orte_plm_base_launch_failed(jdata->jobid, false, -1, 0, ORTE_JOB_STATE_FAILED_TO_START); orte_plm_base_launch_failed(jdata->jobid, false, -1, ORTE_ERROR_DEFAULT_EXIT_CODE, ORTE_JOB_STATE_FAILED_TO_START);
} }
return rc; return rc;

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

@ -810,7 +810,7 @@ launch_apps:
/* check for failed launch - if so, force terminate */ /* check for failed launch - if so, force terminate */
if (failed_launch) { if (failed_launch) {
orte_plm_base_launch_failed(jdata->jobid, false, -1, 0, ORTE_JOB_STATE_FAILED_TO_START); orte_plm_base_launch_failed(jdata->jobid, false, -1, ORTE_ERROR_DEFAULT_EXIT_CODE, ORTE_JOB_STATE_FAILED_TO_START);
} }
return rc; return rc;

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

@ -400,7 +400,7 @@ cleanup:
/* check for failed launch - if so, force terminate */ /* check for failed launch - if so, force terminate */
if (failed_launch) { if (failed_launch) {
orte_plm_base_launch_failed(jdata->jobid, false, -1, 0, ORTE_JOB_STATE_FAILED_TO_START); orte_plm_base_launch_failed(jdata->jobid, false, -1, ORTE_ERROR_DEFAULT_EXIT_CODE, ORTE_JOB_STATE_FAILED_TO_START);
} }
return rc; return rc;

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

@ -445,7 +445,7 @@ launch_apps:
/* check for failed launch - if so, force terminate */ /* check for failed launch - if so, force terminate */
if (failed_launch) { if (failed_launch) {
orte_plm_base_launch_failed(jdata->jobid, true, -1, 0, ORTE_JOB_STATE_FAILED_TO_START); orte_plm_base_launch_failed(jdata->jobid, true, -1, ORTE_ERROR_DEFAULT_EXIT_CODE, ORTE_JOB_STATE_FAILED_TO_START);
} }
/* check for timing request - get stop time and process if so */ /* check for timing request - get stop time and process if so */

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

@ -203,7 +203,7 @@ orte_plm_xgrid_spawn(orte_job_t *jdata)
if (failed_launch) { if (failed_launch) {
orte_plm_base_launch_failed(jdata->jobid, orte_plm_base_launch_failed(jdata->jobid,
false, false,
-1, 0, -1, ORTE_ERROR_DEFAULT_EXIT_CODE,
ORTE_JOB_STATE_FAILED_TO_START); ORTE_JOB_STATE_FAILED_TO_START);
} }