Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v2.5.0

  |   Home   |   Support   |   FAQ   |  
cpukinds.h
1 /*
2  * Copyright © 2020 Inria. All rights reserved.
3  * See COPYING in top-level directory.
4  */
5 
10 #ifndef HWLOC_CPUKINDS_H
11 #define HWLOC_CPUKINDS_H
12 
13 #include "hwloc.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #elif 0
18 }
19 #endif
20 
76 HWLOC_DECLSPEC int
78  unsigned long flags);
79 
91 HWLOC_DECLSPEC int
93  hwloc_const_bitmap_t cpuset,
94  unsigned long flags);
95 
129 HWLOC_DECLSPEC int
131  unsigned kind_index,
132  hwloc_bitmap_t cpuset,
133  int *efficiency,
134  unsigned *nr_infos, struct hwloc_info_s **infos,
135  unsigned long flags);
136 
174 HWLOC_DECLSPEC int
176  hwloc_bitmap_t cpuset,
177  int forced_efficiency,
178  unsigned nr_infos, struct hwloc_info_s *infos,
179  unsigned long flags);
180 
183 #ifdef __cplusplus
184 } /* extern "C" */
185 #endif
186 
187 
188 #endif /* HWLOC_CPUKINDS_H */
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:691
struct hwloc_bitmap_s * hwloc_bitmap_t
Set of bits represented as an opaque pointer to an internal bitmap.
Definition: bitmap.h:68
const struct hwloc_bitmap_s * hwloc_const_bitmap_t
a non-modifiable hwloc_bitmap_t
Definition: bitmap.h:70
int hwloc_cpukinds_register(hwloc_topology_t topology, hwloc_bitmap_t cpuset, int forced_efficiency, unsigned nr_infos, struct hwloc_info_s *infos, unsigned long flags)
Register a kind of CPU in the topology.
int hwloc_cpukinds_get_nr(hwloc_topology_t topology, unsigned long flags)
Get the number of different kinds of CPU cores in the topology.
int hwloc_cpukinds_get_info(hwloc_topology_t topology, unsigned kind_index, hwloc_bitmap_t cpuset, int *efficiency, unsigned *nr_infos, struct hwloc_info_s **infos, unsigned long flags)
Get the CPU set and infos about a CPU kind in the topology.
int hwloc_cpukinds_get_by_cpuset(hwloc_topology_t topology, hwloc_const_bitmap_t cpuset, unsigned long flags)
Get the index of the CPU kind that contains CPUs listed in cpuset.
Object info.
Definition: hwloc.h:673