Defines | |
#define | HWLOC_TYPE_UNORDERED INT_MAX |
Value returned by hwloc_compare_types when types can not be compared. | |
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_PROC, HWLOC_OBJ_MISC } |
Type of topology object. More... | |
Functions | |
int | hwloc_compare_types (hwloc_obj_type_t type1, hwloc_obj_type_t type2) |
Compare the depth of two object types. |
#define HWLOC_TYPE_UNORDERED INT_MAX |
Value returned by hwloc_compare_types when types can not be compared.
enum hwloc_obj_type_t |
Type of topology object.
int hwloc_compare_types | ( | hwloc_obj_type_t | type1, | |
hwloc_obj_type_t | type2 | |||
) |
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 if type1
is considered to be respectively higher than, equal to, or deeper than type2
in the hierarchy. If the types can not be compared (because it does not make sense), HWLOC_TYPE_UNORDERED is returned. Object types containing CPUs can always be compared.