logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hwlocality_object_sets - Object Sets (hwloc_cpuset_t and hwloc_nodeset_t)

Author

       Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.

Hardware Locality (hwloc)                        Version 2.12.0                        hwlocality_object_sets(3)

Detailed Description

       Hwloc uses bitmaps to represent two distinct kinds of object sets: CPU sets (hwloc_cpuset_t) and NUMA
       node sets (hwloc_nodeset_t). These types are both typedefs to a common back end type (hwloc_bitmap_t),
       and therefore all the hwloc bitmap functions are applicable to both hwloc_cpuset_t and hwloc_nodeset_t
       (see ThebitmapAPI).

       The rationale for having two different types is that even though the actions one wants to perform on
       these types are the same (e.g., enable and disable individual items in the set/mask), they're used in
       very different contexts: one for specifying which processors to use and one for specifying which NUMA
       nodes to use. Hence, the name difference is really just to reflect the intent of where the type is used.

Name

       hwlocality_object_sets - Object Sets (hwloc_cpuset_t and hwloc_nodeset_t)

Synopsis

Typedefs
       typedef hwloc_bitmap_thwloc_cpuset_t
       typedef hwloc_const_bitmap_thwloc_const_cpuset_t
       typedef hwloc_bitmap_thwloc_nodeset_t
       typedef hwloc_const_bitmap_thwloc_const_nodeset_t

Typedef Documentation

typedefhwloc_const_bitmap_thwloc_const_cpuset_t
       A non-modifiable hwloc_cpuset_t.

   typedefhwloc_const_bitmap_thwloc_const_nodeset_t
       A non-modifiable hwloc_nodeset_t.

   typedefhwloc_bitmap_thwloc_cpuset_t
       A CPU set is a bitmap whose bits are set according to CPU physical OS indexes. It may be consulted and
       modified with the bitmap API as any hwloc_bitmap_t (see hwloc/bitmap.h).

       Each bit may be converted into a PU object using hwloc_get_pu_obj_by_os_index().

   typedefhwloc_bitmap_thwloc_nodeset_t
       A node set is a bitmap whose bits are set according to NUMA memory node physical OS indexes. It may be
       consulted and modified with the bitmap API as any hwloc_bitmap_t (see hwloc/bitmap.h). Each bit may be
       converted into a NUMA node object using hwloc_get_numanode_obj_by_os_index().

       When binding memory on a system without any NUMA node, the single main memory bank is considered as NUMA
       node #0.

       See also ConvertingbetweenCPUsetsandnodesets.

See Also