25 #ifndef OMPI_MCA_DPM_H
26 #define OMPI_MCA_DPM_H
28 #include "ompi_config.h"
31 #include "opal/mca/base/base.h"
34 #include "ompi/info/info.h"
35 #include "ompi/communicator/communicator.h"
41 #define OMPI_RML_TAG_INVALID ORTE_RML_TAG_INVALID
43 #define OMPI_RML_TAG_BASE ORTE_RML_TAG_MAX
45 #define OMPI_RML_TAG_UDAPL OMPI_RML_TAG_BASE+1
46 #define OMPI_RML_TAG_OPENIB OMPI_RML_TAG_BASE+2
47 #define OMPI_RML_TAG_XOPENIB OMPI_RML_TAG_BASE+3
48 #define OMPI_RML_TAG_COMM_CID_INTRA OMPI_RML_TAG_BASE+4
49 #define OMPI_RML_TAG_XOOB OMPI_RML_TAG_BASE+5
50 #define OMPI_RML_TAG_SM_BACK_FILE_CREATED OMPI_RML_TAG_BASE+6
51 #define OMPI_CRCP_COORD_BOOKMARK_TAG OMPI_RML_TAG_BASE+7
52 #define OMPI_COMM_JOIN_TAG OMPI_RML_TAG_BASE+8
55 #define OMPI_RML_TAG_COLL_SM2_BACK_FILE_CREATED OMPI_RML_TAG_BASE+9
57 #define OMPI_RML_TAG_COMMON_SM_COMP_INDEX OMPI_RML_TAG_BASE+10
59 #define OMPI_RML_TAG_DYNAMIC OMPI_RML_TAG_BASE+200
67 typedef int (*ompi_dpm_base_module_init_fn_t)(void);
72 typedef int (*ompi_dpm_base_module_connect_accept_fn_t)(
ompi_communicator_t *comm,
int root,
73 char *port,
bool send_first,
85 typedef int (*ompi_dpm_base_module_spawn_fn_t)(
int count,
char **array_of_commands,
86 char ***array_of_argv,
87 int *array_of_maxprocs,
98 typedef int (*ompi_dpm_base_module_dyn_init_fn_t)(void);
104 typedef int (*ompi_dpm_base_module_dyn_finalize_fn_t)(void);
119 typedef int (*ompi_dpm_base_module_open_port_fn_t)(
char *port_name,
orte_rml_tag_t tag);
124 typedef int (*ompi_dpm_base_module_parse_port_name_t)(
char *port_name,
125 char **hnp_uri,
char **rml_uri,
132 typedef int (*ompi_dpm_base_module_route_to_port_t)(
char *rml_uri,
orte_process_name_t *rproc);
138 typedef int (*ompi_dpm_base_module_close_port_fn_t)(
char *port_name);
143 typedef int (*ompi_dpm_base_module_finalize_fn_t)(void);
150 ompi_dpm_base_module_init_fn_t
init;
152 ompi_dpm_base_module_connect_accept_fn_t connect_accept;
156 ompi_dpm_base_module_spawn_fn_t spawn;
158 ompi_dpm_base_module_dyn_init_fn_t dyn_init;
160 ompi_dpm_base_module_dyn_finalize_fn_t dyn_finalize;
162 ompi_dpm_base_module_mark_dyncomm_fn_t mark_dyncomm;
164 ompi_dpm_base_module_open_port_fn_t open_port;
166 ompi_dpm_base_module_parse_port_name_t parse_port;
168 ompi_dpm_base_module_route_to_port_t route_to_port;
170 ompi_dpm_base_module_close_port_fn_t close_port;
172 ompi_dpm_base_module_finalize_fn_t finalize;
195 #define OMPI_DPM_BASE_VERSION_2_0_0 \
196 MCA_BASE_VERSION_2_0_0, \
Structure for DPM modules.
Definition: dpm.h:148
Common type for all MCA components.
Definition: mca.h:250
Top-level interface for all MCA components.
mca_base_component_t base_version
MCA base component.
Definition: dpm.h:185
void(* ompi_dpm_base_module_disconnect_fn_t)(ompi_communicator_t *comm)
Executes internally a disconnect on all dynamic communicators in case the user did not disconnect the...
Definition: dpm.h:80
Meta data for MCA v2.0.0 components.
Definition: mca.h:309
uint32_t orte_rml_tag_t
Message matching tag.
Definition: rml_types.h:220
Structure for DPM components.
Definition: dpm.h:183
Definition: communicator.h:118
ompi_dpm_base_module_init_fn_t init
Initialization Function.
Definition: dpm.h:150
Contains the typedefs for the use of the rml.
mca_base_component_data_t base_data
MCA base data.
Definition: dpm.h:187