Hardware Locality (hwloc)
1.3.3
|
|
static |
Get the first largest object included in the given cpuset set
.
set
and whose parent is not.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
.
|
static |
Return the number of objects at depth depth
included in CPU set set
.
|
static |
Return the number of objects of type type
included in CPU set set
.
If no object for that type exists inside CPU set set
, 0 is returned. If there are several levels with objects of that type inside CPU set set
, -1 is returned.
|
static |
Return the next object at depth depth
included in CPU set set
.
If prev
is NULL
, return the first object at depth depth
included in set
. The next invokation should pass the previous return value in prev
so as to obtain the next object in set
.
|
static |
Return the next object of type type
included in CPU set set
.
If there are multiple or no depth for given type, return NULL
and let the caller fallback to hwloc_get_next_obj_inside_cpuset_by_depth().
|
static |
Return the (logically) idx
-th object at depth depth
included in CPU set set
.
|
static |
Return the idx
-th object of type type
included in CPU set set
.
If there are multiple or no depth for given type, return NULL
and let the caller fallback to hwloc_get_obj_inside_cpuset_by_depth().