2009-11-20 01:47:49 +00:00
|
|
|
/* -*- C -*-
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*
|
|
|
|
* A program that just spins - provides mechanism for testing user-driven
|
|
|
|
* abnormal program termination
|
|
|
|
*/
|
2010-07-01 19:45:43 +00:00
|
|
|
#include "orte_config.h"
|
|
|
|
#include "orte/constants.h"
|
2009-11-20 01:47:49 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2010-07-01 19:45:43 +00:00
|
|
|
#include "orte/runtime/orte_globals.h"
|
|
|
|
#include "orte/util/name_fns.h"
|
2009-11-20 01:47:49 +00:00
|
|
|
#include "orte/runtime/runtime.h"
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
2010-07-01 19:45:43 +00:00
|
|
|
if (ORTE_SUCCESS != orte_init(&argc, &argv, ORTE_PROC_NON_MPI)) {
|
|
|
|
fprintf(stderr, "ORTE_INIT FAILED\n");
|
|
|
|
exit(1);
|
2009-11-20 01:47:49 +00:00
|
|
|
}
|
2010-07-01 19:45:43 +00:00
|
|
|
opal_output(0, "%s RUNNING", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME));
|
|
|
|
|
2012-04-06 14:23:13 +00:00
|
|
|
opal_event_dispatch(orte_event_base);
|
2009-11-20 01:47:49 +00:00
|
|
|
|
|
|
|
orte_finalize();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|