1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
2 /*
3 * Copyright (c) 2011-2017 Cisco Systems, Inc. All rights reserved
4 * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
5 * reserved.
6 *
7 * $COPYRIGHT$
8 *
9 * Additional copyrights may follow
10 *
11 * $HEADER$
12 */
13
14 #include "opal_config.h"
15 #include "opal/constants.h"
16
17 #include "opal/mca/hwloc/hwloc-internal.h"
18
19 /*
20 * Public string showing the sysinfo ompi_linux component version number
21 */
22 const char *opal_hwloc_external_component_version_string =
23 "OPAL hwloc_external hwloc MCA component version " OPAL_VERSION;
24
25
26 /*
27 * Local function
28 */
29 static int hwloc_external_open(void);
30
31
32 /*
33 * Instantiate the public struct with all of our public information
34 * and pointers to our public functions in it
35 */
36
37 const opal_hwloc_component_t mca_hwloc_external_component = {
38
39 /* First, the mca_component_t struct containing meta information
40 about the component itself */
41
42 .base_version = {
43 OPAL_HWLOC_BASE_VERSION_2_0_0,
44
45 /* Component name and version */
46 .mca_component_name = "external",
47 MCA_BASE_MAKE_VERSION(component, OPAL_MAJOR_VERSION, OPAL_MINOR_VERSION,
48 OPAL_RELEASE_VERSION),
49
50 /* Component open and close functions */
51 .mca_open_component = hwloc_external_open,
52 },
53 .base_data = {
54 /* The component is checkpoint ready */
55 MCA_BASE_METADATA_PARAM_CHECKPOINT
56 },
57 };
58
59 static int hwloc_external_open(void)
60 {
61 /* Must have some code in this file, or the OS X linker may
62 eliminate the whole file */
63 return OPAL_SUCCESS;
64 }