OpenMPI  0.1.1
maffinity_hwloc.h
1 /*
2  * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
3  * University Research and Technology
4  * Corporation. All rights reserved.
5  * Copyright (c) 2004-2005 The University of Tennessee and The University
6  * of Tennessee Research Foundation. All rights
7  * reserved.
8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9  * University of Stuttgart. All rights reserved.
10  * Copyright (c) 2004-2005 The Regents of the University of California.
11  * All rights reserved.
12  * Copyright (c) 2006-2011 Cisco Systems, Inc. All rights reserved.
13  *
14  * $COPYRIGHT$
15  *
16  * Additional copyrights may follow
17  *
18  * $HEADER$
19  */
20 
21 #ifndef MCA_MAFFINITY_HWLOC_EXPORT_H
22 #define MCA_MAFFINITY_HWLOC_EXPORT_H
23 
24 #include "opal_config.h"
25 
26 #include "opal/mca/mca.h"
28 #include "hwloc.h"
29 
30 
31 BEGIN_C_DECLS
32 
33 typedef struct {
34  /* Base maffinity component */
36 
37  /* This component's data */
38  int priority;
40 
41 /**
42  * Globally exported variable
43  */
44 OPAL_DECLSPEC extern opal_maffinity_hwloc_component_2_0_0_t
45  mca_maffinity_hwloc_component;
46 
47 /**
48  * maffinity query API function
49  *
50  * Query function for maffinity components. Simply returns a priority
51  * to rank it against other available maffinity components (assumedly,
52  * only one component will be available per platform, but it's
53  * possible that there could be more than one available).
54  */
55 int opal_maffinity_hwloc_component_query(mca_base_module_t **module,
56  int *priority);
57 
58 END_C_DECLS
59 
60 #endif /* MCA_MAFFINITY_HWLOC_EXPORT_H */
Common type for all MCA modules.
Definition: mca.h:100
Structure for maffinity components.
Definition: maffinity.h:100
maffinity (memory affinity) framework component interface definitions.
Top-level interface for all MCA components.
Definition: maffinity_hwloc.h:33