2011-08-08 01:32:25 +04:00
|
|
|
/* -*- C -*-
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*
|
|
|
|
* Check error messages
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#include "orte/runtime/runtime.h"
|
|
|
|
#include "orte/mca/errmgr/errmgr.h"
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
|
|
|
|
int rc, i;
|
|
|
|
|
2011-08-08 08:21:02 +04:00
|
|
|
putenv("OMPI_MCA_orte_report_silent_errors=1");
|
|
|
|
|
2011-08-08 01:32:25 +04:00
|
|
|
if (0 > (rc = orte_init(&argc, &argv, ORTE_PROC_NON_MPI))) {
|
|
|
|
fprintf(stderr, "orte_abort: couldn't init orte - error code %d\n", rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i=0; ORTE_ERR_MAX < i; i--) {
|
2015-06-24 06:59:57 +03:00
|
|
|
fprintf(stderr, "%d: %s\n", -1*i,
|
2011-08-08 08:21:02 +04:00
|
|
|
(NULL == ORTE_ERROR_NAME(i)) ? "NULL" : ORTE_ERROR_NAME(i));
|
2011-08-08 01:32:25 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
orte_finalize();
|
|
|
|
return 0;
|
|
|
|
}
|