table of contents
- trixie 2.12.0-4
- trixie-backports 2.16.0-1~bpo13+1
- testing 2.16.0-1
- unstable 2.16.0-1
| hwlocality_helper_topology_sets(3) | Library Functions Manual | hwlocality_helper_topology_sets(3) |
NAME¶
hwlocality_helper_topology_sets - CPU and node sets of entire topologies
SYNOPSIS¶
Functions¶
hwloc_const_cpuset_t
hwloc_topology_get_topology_cpuset (hwloc_topology_t topology)
hwloc_const_cpuset_t hwloc_topology_get_complete_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_topology_nodeset
(hwloc_topology_t topology)
hwloc_const_nodeset_t hwloc_topology_get_complete_nodeset
(hwloc_topology_t topology)
hwloc_const_nodeset_t hwloc_topology_get_allowed_nodeset
(hwloc_topology_t topology)
Detailed Description¶
There are three different kinds of CPU sets and node sets. "topology" sets correspond exactly to PU and NUMANode objects in the topology. "complete" sets may be larger if some resources are missing in the topology because they are offline, disallowed, etc. "allowed" sets are equal to "topology" sets by default, but they may be smaller if some disallowed resources are exposed in the topology (if the topology flag HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED is set).
Function Documentation¶
hwloc_const_cpuset_t hwloc_topology_get_topology_cpuset (hwloc_topology_t topology)¶
Get the topology CPU set.
Returns
Note
This is equivalent to retrieving the machine root object CPU-set.
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.
hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset (hwloc_topology_t topology)¶
Get the complete CPU set.
Returns
Note
This is equivalent to retrieving the machine root object complete CPU-set.
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.
hwloc_const_cpuset_t hwloc_topology_get_allowed_cpuset (hwloc_topology_t topology)¶
Get the allowed CPU set.
Returns
Note
If HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED was set, this allowed set may be smaller than hwloc_topology_get_topology_cpuset() since disallowed CPU are present in the topology and filtered out of this allowed cpuset.
Applying hwloc_bitmap_intersects() on the result of this function and on an object cpuset checks whether there are allowed PUs inside that object. Applying hwloc_bitmap_and() returns the list of these allowed PUs.
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.
hwloc_const_nodeset_t hwloc_topology_get_topology_nodeset (hwloc_topology_t topology)¶
Get the topology memory node set.
Returns
Note
This is equivalent to retrieving the machine root object nodeset.
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.
hwloc_const_nodeset_t hwloc_topology_get_complete_nodeset (hwloc_topology_t topology)¶
Get the complete node set.
Returns
Note
This is equivalent to retrieving the machine root object complete node set.
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.
hwloc_const_nodeset_t hwloc_topology_get_allowed_nodeset (hwloc_topology_t topology)¶
Get the allowed node set.
Returns
Note
If HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED was set, this allowed set may be smaller than hwloc_topology_get_topology_nodeset() since disallowed NUMA nodes are present in the topology and filtered out of this allowed nodeset.
Applying hwloc_bitmap_intersects() on the result of this function and on an object nodeset checks whether there are allowed NUMA nodes near that object. Applying hwloc_bitmap_and() returns the list of these allowed NUMA nodes.
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 function cannot return NULL.
Author¶
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
| Version 2.16.0 | Hardware Locality (hwloc) |