Add new job state
This commit was SVN r27878.
Этот коммит содержится в:
родитель
7aa80b984d
Коммит
e4673f3283
@ -166,6 +166,7 @@ typedef int32_t orte_job_state_t;
|
||||
#define ORTE_JOB_STATE_SILENT_ABORT (ORTE_JOB_STATE_ERROR + 16) /* an error occurred and was reported elsewhere, so error out quietly */
|
||||
|
||||
#define ORTE_JOB_STATE_REPORT_PROGRESS (ORTE_JOB_STATE_ERROR + 17) /* report launch progress - not an error */
|
||||
#define ORTE_JOB_STATE_ALLOC_FAILED (ORTE_JOB_STATE_ERROR + 18) /* job failed to obtain an allocation */
|
||||
|
||||
/* Define a boundary so that external developers
|
||||
* have a starting point for defining their own
|
||||
|
@ -193,6 +193,9 @@ int orte_err2str(int errnum, const char **errmsg)
|
||||
case ORTE_ERR_DATA_VALUE_NOT_FOUND:
|
||||
retval = "Data not found";
|
||||
break;
|
||||
case ORTE_ERR_ALLOCATION_PENDING:
|
||||
retval = "Allocation pending";
|
||||
break;
|
||||
default:
|
||||
if (orte_report_silent_errors) {
|
||||
retval = "Unknown error";
|
||||
@ -290,6 +293,8 @@ const char *orte_job_state_to_str(orte_job_state_t state)
|
||||
return "ERROR REPORTED ELSEWHERE";
|
||||
case ORTE_JOB_STATE_REPORT_PROGRESS:
|
||||
return "REPORT PROGRESS";
|
||||
case ORTE_JOB_STATE_ALLOC_FAILED:
|
||||
return "ALLOCATION FAILED";
|
||||
case ORTE_JOB_STATE_ANY:
|
||||
return "ANY";
|
||||
default:
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user