This source file includes following definitions.
- OMPI_CAST_RTE_NAME
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 #ifndef MCA_OMPI_RTE_ORTE_H
22 #define MCA_OMPI_RTE_ORTE_H
23
24 #include "ompi_config.h"
25 #include "ompi/constants.h"
26
27 struct opal_proc_t;
28
29 #include "opal/threads/threads.h"
30
31 #include "orte/types.h"
32 #include "orte/mca/errmgr/errmgr.h"
33 #include "orte/mca/rml/base/rml_contact.h"
34 #include "orte/mca/rml/rml.h"
35 #include "orte/mca/routed/routed.h"
36 #include "orte/runtime/orte_data_server.h"
37 #include "orte/runtime/runtime.h"
38 #include "orte/util/name_fns.h"
39 #include "orte/util/proc_info.h"
40
41 struct ompi_proc_t;
42 struct ompi_communicator_t;
43
44 BEGIN_C_DECLS
45
46
47 typedef orte_process_name_t ompi_process_name_t;
48 typedef orte_jobid_t ompi_jobid_t;
49 typedef orte_vpid_t ompi_vpid_t;
50 typedef orte_ns_cmp_bitmask_t ompi_rte_cmp_bitmask_t;
51 #define OMPI_PROC_MY_NAME ORTE_PROC_MY_NAME
52 #define OMPI_NAME_PRINT(a) ORTE_NAME_PRINT((const orte_process_name_t*)a)
53 #define ompi_rte_compare_name_fields(a, b, c) orte_util_compare_name_fields(a, (const orte_process_name_t*)(b), (const orte_process_name_t*)(c))
54 #define ompi_rte_convert_string_to_process_name(a,b) orte_util_convert_string_to_process_name(a,b)
55 #define ompi_rte_convert_process_name_to_string(a,b) orte_util_convert_process_name_to_string(a,b)
56 #define OMPI_NAME_WILDCARD ORTE_NAME_WILDCARD
57 #define OMPI_NODE_RANK_INVALID ORTE_NODE_RANK_INVALID
58 #define OMPI_LOCAL_RANK_INVALID ORTE_LOCAL_RANK_INVALID
59 #define OMPI_RTE_CMP_JOBID ORTE_NS_CMP_JOBID
60 #define OMPI_RTE_CMP_VPID ORTE_NS_CMP_VPID
61 #define OMPI_RTE_CMP_ALL ORTE_NS_CMP_ALL
62 #define OMPI_LOCAL_JOBID(jobid) ORTE_LOCAL_JOBID(jobid)
63 #define OMPI_JOB_FAMILY(jobid) ORTE_JOB_FAMILY(jobid)
64 #define OMPI_CONSTRUCT_JOBID(family,local) ORTE_CONSTRUCT_JOBID(family,local)
65
66
67 #define OMPI_NAME ORTE_NAME
68 #define OMPI_PROCESS_NAME_HTON ORTE_PROCESS_NAME_HTON
69 #define OMPI_PROCESS_NAME_NTOH ORTE_PROCESS_NAME_NTOH
70
71 #if OPAL_ENABLE_DEBUG
72 static inline orte_process_name_t * OMPI_CAST_RTE_NAME(opal_process_name_t * name) {
73 return (orte_process_name_t *)name;
74 }
75 #else
76 #define OMPI_CAST_RTE_NAME(a) ((orte_process_name_t*)(a))
77 #endif
78
79
80 typedef orte_node_rank_t ompi_node_rank_t;
81 typedef orte_local_rank_t ompi_local_rank_t;
82 #define ompi_process_info orte_process_info
83 #define ompi_rte_proc_is_bound orte_proc_is_bound
84
85
86 OMPI_DECLSPEC void __opal_attribute_noreturn__
87 ompi_rte_abort(int error_code, char *fmt, ...);
88 #define ompi_rte_abort_peers(a, b, c) orte_errmgr.abort_peers(a, b, c)
89 #define OMPI_ERROR_LOG ORTE_ERROR_LOG
90
91
92 #define ompi_rte_init(a, b) orte_init(a, b, ORTE_PROC_MPI)
93 #define ompi_rte_finalize() orte_finalize()
94 OMPI_DECLSPEC void ompi_rte_wait_for_debugger(void);
95
96
97 OMPI_DECLSPEC bool ompi_rte_connect_accept_support(const char *port);
98
99 #define ompi_proc_applied_binding orte_proc_applied_binding
100
101 END_C_DECLS
102
103 #endif