HWLOCALITY_HELPER_TOPOLOGY_SETS(3)
π NAME π
okay so bestie, welcome to the hwlocality...pology_sets(3) page from the Library Functions Manual β literally the guide to CPU and node sets of entire topologies. β¨
hwlocality_helper_topology_sets β CPU and node sets of entire topologies. π«Ά
β¨ SYNOPSIS β¨
π Functions π
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset
(hwloc_topology_t topology)
hwloc_const_cpuset_t hwloc_topology_get_topology_cpuset
(hwloc_topology_t topology)
hwloc_const_cpuset_t hwloc_topology_get_allowed_cpuset (hwloc_topology_t
topology)
hwloc_const_nodeset_t hwloc_topology_get_complete_nodeset
(hwloc_topology_t topology)
hwloc_const_nodeset_t hwloc_topology_get_topology_nodeset
(hwloc_topology_t topology)
hwloc_const_nodeset_t hwloc_topology_get_allowed_nodeset
(hwloc_topology_t topology)
πΈ DETAILED DESCRIPTION πΈ
okay bestie, this section is lowkey just the runway to the function docs β the real tea is below. π
π₯ FUNCTION DOCUMENTATION π₯
π hwloc_topology_get_allowed_cpuset β get allowed CPU set π
hwloc_const_cpuset_t hwloc_topology_get_allowed_cpuset (hwloc_topology_t
topology)
Returns: the CPU set of allowed processors of the system. π
Note:
- π This function cannot return NULL.
- If the topology flag
HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWEDwas not set, this is identical tohwloc_topology_get_topology_cpuset(), which means all PUs are allowed. - If
HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWEDwas set, applyinghwloc_bitmap_intersects()on the result of this function and on an object cpuset checks whether there are allowed PUs inside that object. Applyinghwloc_bitmap_and()returns the list of these allowed PUs. - The returned cpuset is not newly allocated and should thus not be changed or freed,
hwloc_bitmap_dup()must be used to obtain a local copy.
π hwloc_topology_get_allowed_nodeset β get allowed node set π
hwloc_const_nodeset_t hwloc_topology_get_allowed_nodeset (hwloc_topology_t
topology)
Returns: the node set of allowed memory of the system. π
Note:
- π This function cannot return NULL.
- If the topology flag
HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWEDwas not set, this is identical tohwloc_topology_get_topology_nodeset(), which means all NUMA nodes are allowed. - If
HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWEDwas set, applyinghwloc_bitmap_intersects()on the result of this function and on an object nodeset checks whether there are allowed NUMA nodes inside that object. Applyinghwloc_bitmap_and()returns the list of these allowed NUMA nodes. - The returned nodeset is not newly allocated and should thus not be changed or freed,
hwloc_bitmap_dup()must be used to obtain a local copy.
π hwloc_topology_get_complete_cpuset β get complete CPU set π
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset (hwloc_topology_t
topology)
Returns: the complete CPU set of processors of the system. π₯
Note:
- π This function cannot return NULL.
- The returned cpuset is not newly allocated and should thus not be changed or freed;
hwloc_bitmap_dup()must be used to obtain a local copy. - This is equivalent to retrieving the root object complete CPU-set.
π hwloc_topology_get_complete_nodeset β get complete node set π
hwloc_const_nodeset_t hwloc_topology_get_complete_nodeset (hwloc_topology_t
topology)
Returns: the complete node set of memory of the system. π
Note:
- π This function cannot return NULL.
- The returned nodeset is not newly allocated and should thus not be changed or freed;
hwloc_bitmap_dup()must be used to obtain a local copy. - This is equivalent to retrieving the root object complete nodeset.
π hwloc_topology_get_topology_cpuset β get topology CPU set π
hwloc_const_cpuset_t hwloc_topology_get_topology_cpuset (hwloc_topology_t
topology)
Returns: the CPU set of processors of the system for which hwloc provides topology information. This is equivalent to the cpuset of the system object. π¦
Note:
- π This function cannot return NULL.
- The returned cpuset is not newly allocated and should thus not be changed or freed;
hwloc_bitmap_dup()must be used to obtain a local copy. - This is equivalent to retrieving the root object CPU-set.
π hwloc_topology_get_topology_nodeset β get topology node set π
hwloc_const_nodeset_t hwloc_topology_get_topology_nodeset (hwloc_topology_t
topology)
Returns: the node set of memory of the system for which hwloc provides topology information. This is equivalent to the nodeset of the system object. π
Note:
- π This function cannot return NULL.
- The returned nodeset is not newly allocated and should thus not be changed or freed;
hwloc_bitmap_dup()must be used to obtain a local copy. - This is equivalent to retrieving the root object nodeset.
π AUTHOR π
ngl, nobody hand-wrote this one: itβs Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code. π
π source/version vibes: Hardware Locality (hwloc), Version 2.15.0. The footerβs date slot is literally just the page title again, so thatβs the whole sign-off, bestie β periodt. π«Ά
π¦ where this page comes from
- arch rolling: hwloc 2.15.0-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms