|
Hardware Locality (hwloc) 2.9.3
|
|
inlinestatic |
Get the first largest object included in the given cpuset set.
set and whose parent is not. NULL if no such object exists.This is convenient for iterating over all largest objects within a CPU set by doing a loop getting the first largest object and clearing its CPU set from the remaining CPU set.
| int hwloc_get_largest_objs_inside_cpuset | ( | hwloc_topology_t | topology, |
| hwloc_const_cpuset_t | set, | ||
| hwloc_obj_t *restrict | objs, | ||
| int | max | ||
| ) |
Get the set of largest objects covering exactly a given cpuset set.
objs.
|
inlinestatic |
Return the number of objects at depth depth included in CPU set set.
|
inlinestatic |
Return the number of objects of type type included in CPU set set.
|
inlinestatic |
Return the next object at depth depth included in CPU set set.
The next invokation should pass the previous return value in prev so as to obtain the next object in set.
depth included in set if prev is NULL. depth included in set if prev is not NULL. NULL if there is no next object.
|
inlinestatic |
Return the next object of type type included in CPU set set.
The next invokation should pass the previous return value in prev so as to obtain the next object in set.
type included in set if prev is NULL. type included in set if prev is not NULL. NULL if there is no next object. NULL if there is no depth for the given type. NULL if there are multiple depths for the given type, the caller should fallback to hwloc_get_next_obj_inside_cpuset_by_depth().
|
inlinestatic |
Return the logical index among the objects included in CPU set set.
Consult all objects in the same level as obj and inside CPU set set in the logical order, and return the index of obj within them. If set covers the entire topology, this is the logical index of obj. Otherwise, this is similar to a logical index within the part of the topology defined by CPU set set.
|
inlinestatic |
Return the (logically) idx -th object at depth depth included in CPU set set.
NULL otherwise.
|
inlinestatic |
Return the idx -th object of type type included in CPU set set.
NULL if there is no such object. NULL if there is no depth for given type. NULL if there are multiple depths for given type, the caller should fallback to hwloc_get_obj_inside_cpuset_by_depth().