hwlocality_object_types(3) | Library Functions Manual | hwlocality_object_types(3) |
hwlocality_object_types - Object Types
#define HWLOC_TYPE_UNORDERED
typedef enum hwloc_obj_cache_type_e
hwloc_obj_cache_type_t
typedef enum hwloc_obj_bridge_type_e hwloc_obj_bridge_type_t
typedef enum hwloc_obj_osdev_type_e hwloc_obj_osdev_type_t
enum hwloc_obj_type_t { HWLOC_OBJ_MACHINE,
HWLOC_OBJ_PACKAGE, HWLOC_OBJ_CORE, HWLOC_OBJ_PU,
HWLOC_OBJ_L1CACHE, HWLOC_OBJ_L2CACHE,
HWLOC_OBJ_L3CACHE, HWLOC_OBJ_L4CACHE,
HWLOC_OBJ_L5CACHE, HWLOC_OBJ_L1ICACHE,
HWLOC_OBJ_L2ICACHE, HWLOC_OBJ_L3ICACHE,
HWLOC_OBJ_GROUP, HWLOC_OBJ_NUMANODE, HWLOC_OBJ_BRIDGE,
HWLOC_OBJ_PCI_DEVICE, HWLOC_OBJ_OS_DEVICE,
HWLOC_OBJ_MISC, HWLOC_OBJ_MEMCACHE, HWLOC_OBJ_DIE,
HWLOC_OBJ_TYPE_MAX }
enum hwloc_obj_cache_type_e { HWLOC_OBJ_CACHE_UNIFIED,
HWLOC_OBJ_CACHE_DATA, HWLOC_OBJ_CACHE_INSTRUCTION }
enum hwloc_obj_bridge_type_e { HWLOC_OBJ_BRIDGE_HOST,
HWLOC_OBJ_BRIDGE_PCI }
enum hwloc_obj_osdev_type_e { HWLOC_OBJ_OSDEV_BLOCK,
HWLOC_OBJ_OSDEV_GPU, HWLOC_OBJ_OSDEV_NETWORK,
HWLOC_OBJ_OSDEV_OPENFABRICS, HWLOC_OBJ_OSDEV_DMA,
HWLOC_OBJ_OSDEV_COPROC }
int hwloc_compare_types (hwloc_obj_type_t type1,
hwloc_obj_type_t type2)
Value returned by hwloc_compare_types() when types can not be compared.
Type of one side (upstream or downstream) of an I/O bridge.
Cache type.
Type of a OS device.
Type of one side (upstream or downstream) of an I/O bridge.
Enumerator
Cache type.
Enumerator
Type of a OS device.
Enumerator
Type of topology object.
Note
Enumerator
Objects of this kind are always reported and can thus be used as fallback when others are not.
NUMA nodes may correspond to different kinds of memory (DRAM, HBM, CXL-DRAM, etc.). When hwloc is able to guess that kind, it is specified in the subtype field of the object. See also Normal attributes in the main documentation.
There is always at least one such object in the topology even if the machine is not NUMA.
Memory objects are not listed in the main children list, but rather in the dedicated Memory children list.
NUMA nodes have a special depth HWLOC_TYPE_DEPTH_NUMANODE instead of a normal depth just like other objects in the main tree.
I/O objects are not listed in the main children list, but rather in the dedicated io children list. I/O objects have NULL CPU and node sets.
I/O objects are not listed in the main children list, but rather in the dedicated io children list. I/O objects have NULL CPU and node sets.
I/O objects are not listed in the main children list, but rather in the dedicated io children list. I/O objects have NULL CPU and node sets.
These objects are not listed in the main children list, but rather in the dedicated misc children list. Misc objects may only have Misc objects as children, and those are in the dedicated misc children list as well. Misc objects have NULL CPU and node sets.
Memory objects are not listed in the main children list, but rather in the dedicated Memory children list.
Memory-side cache have a special depth HWLOC_TYPE_DEPTH_MEMCACHE instead of a normal depth just like other objects in the main tree.
Compare the depth of two object types. Types shouldn't be compared as they are, since newer ones may be added in the future.
Returns
A positive integer if type1 objects are usually included in type2 objects.
0 if type1 and type2 objects are the same.
HWLOC_TYPE_UNORDERED if objects cannot be compared (because neither is usually contained in the other).
Note
HWLOC_OBJ_PU will always be the deepest, while HWLOC_OBJ_MACHINE is always the highest.
This does not mean that the actual topology will respect that order: e.g. as of today cores may also contain caches, and packages may also contain nodes. This is thus just to be seen as a fallback comparison method.
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
Version 2.10.0 | Hardware Locality (hwloc) |