1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
2 /*
3 * Copyright (c) 2012 Los Alamos National Security, LLC. All rights reserved.
4 * Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
5 * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
6 * reserved.
7 *
8 * $COPYRIGHT$
9 *
10 * Additional copyrights may follow
11 *
12 * $HEADER$
13 *
14 * These symbols are in a file by themselves to provide nice linker
15 * semantics. Since linkers generally pull in symbols by object
16 * files, keeping these symbols as the only symbols in this file
17 * prevents utility programs such as "ompi_info" from having to import
18 * entire components just to query their version and parameters.
19 */
20
21 #include "ompi_config.h"
22 #include "ompi/constants.h"
23
24 #include "opal/threads/threads.h"
25 #include "opal/class/opal_list.h"
26
27 #include "orte/mca/rml/rml.h"
28 #include "orte/mca/grpcomm/base/base.h"
29
30 #include "ompi/mca/rte/rte.h"
31 #include "rte_orte.h"
32
33 /*
34 * Public string showing the component version number
35 */
36 const char *ompi_rte_orte_component_version_string =
37 "OMPI orte rte MCA component version " OMPI_VERSION;
38
39 /*
40 * Local function
41 */
42 static int rte_orte_open(void);
43 static int rte_orte_close(void);
44
45 /*
46 * Instantiate the public struct with all of our public information
47 * and pointers to our public functions in it
48 */
49
50 ompi_rte_component_t mca_rte_orte_component = {
51 /* First, the mca_component_t struct containing meta information
52 about the component itself */
53
54 .base_version = {
55 OMPI_RTE_BASE_VERSION_1_0_0,
56
57 /* Component name and version */
58 .mca_component_name = "orte",
59 MCA_BASE_MAKE_VERSION(component, OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION,
60 OMPI_RELEASE_VERSION),
61
62 /* Component open and close functions */
63 .mca_open_component = rte_orte_open,
64 .mca_close_component = rte_orte_close,
65 },
66 .base_data = {
67 /* The component is checkpoint ready */
68 MCA_BASE_METADATA_PARAM_CHECKPOINT
69 },
70 };
71
72 static int rte_orte_open(void)
73 {
74 return OMPI_SUCCESS;
75 }
76
77 static int rte_orte_close(void)
78 {
79 return OMPI_SUCCESS;
80 }