Hardware Locality (hwloc) 1.2
|
Enumerations | |
enum | hwloc_obj_type_t { HWLOC_OBJ_SYSTEM, HWLOC_OBJ_MACHINE, HWLOC_OBJ_NODE, HWLOC_OBJ_SOCKET, HWLOC_OBJ_CACHE, HWLOC_OBJ_CORE, HWLOC_OBJ_PU, HWLOC_OBJ_GROUP, HWLOC_OBJ_MISC, HWLOC_OBJ_TYPE_MAX } |
enum | hwloc_compare_types_e { HWLOC_TYPE_UNORDERED } |
Functions | |
int | hwloc_compare_types (hwloc_obj_type_t type1, hwloc_obj_type_t type2) |
enum hwloc_obj_type_t |
Type of topology object.
int hwloc_compare_types | ( | hwloc_obj_type_t | type1, |
hwloc_obj_type_t | type2 | ||
) | const |
Compare the depth of two object types.
Types shouldn't be compared as they are, since newer ones may be added in the future. This function returns less than, equal to, or greater than zero respectively if type1
objects usually include type2
objects, are the same as type2
objects, or are included in type2
objects. If the types can not be compared (because neither is usually contained in the other), HWLOC_TYPE_UNORDERED is returned. Object types containing CPUs can always be compared (usually, a system contains machines which contain nodes which contain sockets which contain caches, which contain cores, which contain processors).