Hardware Locality (hwloc): cpukinds.h Source File

Hardware Locality (hwloc) 2.14.0rc1

cpukinds.h
1/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright © 2020-2021 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
73
82HWLOC_DECLSPEC int
83hwloc_cpukinds_get_nr(hwloc_topology_t topology,
84 unsigned long flags);
85
97HWLOC_DECLSPEC int
98hwloc_cpukinds_get_by_cpuset(hwloc_topology_t topology,
99 hwloc_const_bitmap_t cpuset,
100 unsigned long flags);
101
135HWLOC_DECLSPEC int
136hwloc_cpukinds_get_info(hwloc_topology_t topology,
137 unsigned kind_index,
138 hwloc_bitmap_t cpuset,
139 int *efficiency,
140 unsigned *nr_infos, struct hwloc_info_s **infos,
141 unsigned long flags);
142
180HWLOC_DECLSPEC int
181hwloc_cpukinds_register(hwloc_topology_t topology,
182 hwloc_bitmap_t cpuset,
183 int forced_efficiency,
184 unsigned nr_infos, struct hwloc_info_s *infos,
185 unsigned long flags);
186
188
189#ifdef __cplusplus
190} /* extern "C" */
191#endif
192
193
194#endif /* HWLOC_CPUKINDS_H */
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition hwloc.h:748
hwloc_bitmap_t
struct hwloc_bitmap_s * hwloc_bitmap_t
Set of bits represented as an opaque pointer to an internal bitmap.
Definition bitmap.h:70
hwloc_const_bitmap_t
const struct hwloc_bitmap_s * hwloc_const_bitmap_t
a non-modifiable hwloc_bitmap_t
Definition bitmap.h:72
hwloc_cpukinds_register
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.
hwloc_cpukinds_get_nr
int hwloc_cpukinds_get_nr(hwloc_topology_t topology, unsigned long flags)
Get the number of different kinds of CPU cores in the topology.
hwloc_cpukinds_get_info
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.
hwloc_cpukinds_get_by_cpuset
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.
hwloc_info_s
Object info attribute (name and value strings).
Definition hwloc.h:730