1
1
openmpi/opal/mca/hwloc/external/hwloc_external_component.c
Jeff Squyres 82c93611e6 Fix some problems with the libevent and hwloc frameworks:
* change components from setting <framework>_base_include to
   opal_<framework>_<component>_include; the framework m4 will figure
   out the winning component and pick the right "include" shell
   variable.  Ditto for the other shell variables (cppflags, ldflags,
   etc.). 
 * misc fixes to hwloc/external
 * add a bunch of missing "opal_" prefixes to shell variables
 * add a few more / update a few comments in framework m4's

This commit was SVN r25174.
2011-09-21 23:06:13 +00:00

64 строки
1.3 KiB
C

/*
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "opal_config.h"
#include "opal/constants.h"
#include "opal/mca/hwloc/hwloc.h"
/*
* Public string showing the sysinfo ompi_linux component version number
*/
const char *opal_hwloc_external_component_version_string =
"OPAL hwloc_external hwloc MCA component version " OPAL_VERSION;
/*
* Local function
*/
static int hwloc_external_open(void);
/*
* Instantiate the public struct with all of our public information
* and pointers to our public functions in it
*/
const opal_hwloc_component_t mca_hwloc_external_component = {
/* First, the mca_component_t struct containing meta information
about the component itself */
{
OPAL_HWLOC_BASE_VERSION_2_0_0,
/* Component name and version */
"external",
OPAL_MAJOR_VERSION,
OPAL_MINOR_VERSION,
OPAL_RELEASE_VERSION,
/* Component open and close functions */
hwloc_external_open,
NULL
},
{
/* The component is checkpoint ready */
MCA_BASE_METADATA_PARAM_CHECKPOINT
}
};
static int hwloc_external_open(void)
{
/* Must have some code in this file, or the OS X linker may
eliminate the whole file */
return OPAL_SUCCESS;
}