Hardware Locality (hwloc) 3.0.0a1-git
cpukinds.h
1/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright © 2020-2023 Inria. All rights reserved.
4 * See COPYING in top-level directory.
5 */
6
10
11#ifndef HWLOC_CPUKINDS_H
12#define HWLOC_CPUKINDS_H
13
14#include "hwloc.h"
15
16#ifdef __cplusplus
17extern "C" {
18#elif 0
19}
20#endif
21
75
84HWLOC_DECLSPEC int
86 unsigned long flags);
87
99HWLOC_DECLSPEC int
102 unsigned long flags);
103
136HWLOC_DECLSPEC int
138 unsigned kind_index,
139 hwloc_bitmap_t cpuset,
140 int *efficiency,
141 struct hwloc_infos_s **infosp,
142 unsigned long flags);
143
181HWLOC_DECLSPEC int
183 hwloc_bitmap_t cpuset,
184 int forced_efficiency,
185 struct hwloc_infos_s *infos,
186 unsigned long flags);
187
189
190#ifdef __cplusplus
191} /* extern "C" */
192#endif
193
194
195#endif /* HWLOC_CPUKINDS_H */
struct hwloc_bitmap_s * hwloc_bitmap_t
Set of bits represented as an opaque pointer to an internal bitmap.
Definition bitmap.h:70
const struct hwloc_bitmap_s * hwloc_const_bitmap_t
a non-modifiable hwloc_bitmap_t
Definition bitmap.h:72
int hwloc_cpukinds_register(hwloc_topology_t topology, hwloc_bitmap_t cpuset, int forced_efficiency, struct hwloc_infos_s *infos, unsigned long flags)
Register a kind of CPU in the topology.
int hwloc_cpukinds_get_info(hwloc_topology_t topology, unsigned kind_index, hwloc_bitmap_t cpuset, int *efficiency, struct hwloc_infos_s **infosp, unsigned long flags)
Get the CPU set and infos about a CPU kind 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_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.
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition hwloc.h:788
Array of string info attributes (pairs of name and value).
Definition hwloc.h:482