This source file includes following definitions.
- main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #include "orte_config.h"
20 #include "orte/orte_constants.h"
21
22
23 #include <stdio.h>
24 #include <string.h>
25 #include <stdlib.h>
26 #ifdef HAVE_SYS_PARAM_H
27 #include <sys/param.h>
28 #endif
29 #ifdef HAVE_NETINET_IN_H
30 #include <netinet/in.h>
31 #endif
32
33 #include "orte/runtime/runtime.h"
34
35 int main (int argc, char* argv[])
36 {
37 int rc;
38
39 fprintf(stderr, "initialize the system\n");
40 if (ORTE_SUCCESS != (rc = orte_init(true))) {
41 fprintf(stderr, "couldn't complete init - error code %d\n", rc);
42 exit(1);
43 }
44
45 fprintf(stderr, "shut system down\n");
46 if (ORTE_SUCCESS != (rc = orte_finalize())) {
47 fprintf(stderr, "couldn't complete finalize - error code %d\n", rc);
48 exit(1);
49 }
50
51 fprintf(stderr, "orte_init_finalize: successful\n");
52
53 return rc;
54 }