This source file includes following definitions.
- orte_ess_base_std_prolog
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/constants.h"
21
22 #include <sys/types.h>
23 #include <stdio.h>
24 #ifdef HAVE_FCNTL_H
25 #include <fcntl.h>
26 #endif
27 #ifdef HAVE_UNISTD_H
28 #include <unistd.h>
29 #endif
30
31 #include "orte/mca/errmgr/errmgr.h"
32 #include "orte/util/show_help.h"
33 #include "orte/runtime/orte_wait.h"
34 #include "orte/runtime/runtime_internals.h"
35
36 #include "orte/mca/ess/base/base.h"
37
38 int orte_ess_base_std_prolog(void)
39 {
40 int ret;
41 char *error = NULL;
42
43
44 if (ORTE_SUCCESS != (ret = orte_dt_init())) {
45 error = "orte_dt_init";
46 goto error;
47 }
48
49 if (!ORTE_PROC_IS_APP) {
50
51
52
53 if (ORTE_SUCCESS != (ret = orte_wait_init())) {
54 ORTE_ERROR_LOG(ret);
55 error = "orte_wait_init";
56 goto error;
57 }
58 }
59
60 return ORTE_SUCCESS;
61
62 error:
63 orte_show_help("help-orte-runtime",
64 "orte_init:startup:internal-failure",
65 true, error, ORTE_ERROR_NAME(ret), ret);
66
67 return ret;
68 }