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 "ompi/mca/rte/rte.h"
28 #include "rte_pmix.h"
29
30 /*
31 * Public string showing the component version number
32 */
33 const char *ompi_rte_pmix_component_version_string =
34 "OMPI pmix rte MCA component version " OMPI_VERSION;
35
36 /*
37 * Local function
38 */
39 static int rte_pmix_open(void);
40 static int rte_pmix_close(void);
41
42 /*
43 * Instantiate the public struct with all of our public information
44 * and pointers to our public functions in it
45 */
46
47 ompi_rte_component_t mca_rte_pmix_component = {
48 /* First, the mca_component_t struct containing meta information
49 about the component itself */
50
51 .base_version = {
52 OMPI_RTE_BASE_VERSION_1_0_0,
53
54 /* Component name and version */
55 .mca_component_name = "pmix",
56 MCA_BASE_MAKE_VERSION(component, OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION,
57 OMPI_RELEASE_VERSION),
58
59 /* Component open and close functions */
60 .mca_open_component = rte_pmix_open,
61 .mca_close_component = rte_pmix_close,
62 },
63 .base_data = {
64 /* The component is checkpoint ready */
65 MCA_BASE_METADATA_PARAM_CHECKPOINT
66 },
67 };
68
69 static int rte_pmix_open(void)
70 {
71 return OMPI_SUCCESS;
72 }
73
74 static int rte_pmix_close(void)
75 {
76 return OMPI_SUCCESS;
77 }