Detailed Description

Function Documentation

static \fBhwloc_obj_t\fP hwloc_get_first_largest_obj_inside_cpuset (\fBhwloc_topology_t\fPtopology, \fBhwloc_const_cpuset_t\fPset)\fC [inline]\fP, \fC [static]\fP

Get the first largest object included in the given cpuset set.

Returns:

the first object that is included in 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.

Note:

This function cannot work if the root object does not have a CPU set, e.g. if the topology is made of different machines.

int hwloc_get_largest_objs_inside_cpuset (\fBhwloc_topology_t\fPtopology, \fBhwloc_const_cpuset_t\fPset, \fBhwloc_obj_t\fP *restrictobjs, intmax)

Get the set of largest objects covering exactly a given cpuset set.

Returns:

the number of objects returned in objs.

Note:

This function cannot work if the root object does not have a CPU set, e.g. if the topology is made of different machines.

static unsigned hwloc_get_nbobjs_inside_cpuset_by_depth (\fBhwloc_topology_t\fPtopology, \fBhwloc_const_cpuset_t\fPset, unsigneddepth)\fC [inline]\fP, \fC [static]\fP

Return the number of objects at depth depth included in CPU set set.

Note:

This function cannot work if objects at the given depth do not have CPU sets or if the topology is made of different machines.

static int hwloc_get_nbobjs_inside_cpuset_by_type (\fBhwloc_topology_t\fPtopology, \fBhwloc_const_cpuset_t\fPset, \fBhwloc_obj_type_t\fPtype)\fC [inline]\fP, \fC [static]\fP

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.

Note:

This function cannot work if objects of the given type do not have CPU sets or if the topology is made of different machines.

static \fBhwloc_obj_t\fP hwloc_get_next_obj_inside_cpuset_by_depth (\fBhwloc_topology_t\fPtopology, \fBhwloc_const_cpuset_t\fPset, unsigneddepth, \fBhwloc_obj_t\fPprev)\fC [inline]\fP, \fC [static]\fP

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.

Note:

This function cannot work if objects at the given depth do not have CPU sets or if the topology is made of different machines.

static \fBhwloc_obj_t\fP hwloc_get_next_obj_inside_cpuset_by_type (\fBhwloc_topology_t\fPtopology, \fBhwloc_const_cpuset_t\fPset, \fBhwloc_obj_type_t\fPtype, \fBhwloc_obj_t\fPprev)\fC [inline]\fP, \fC [static]\fP

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().

Note:

This function cannot work if objects of the given type do not have CPU sets or if the topology is made of different machines.

static int hwloc_get_obj_index_inside_cpuset (\fBhwloc_topology_t\fPtopology, \fBhwloc_const_cpuset_t\fPset, \fBhwloc_obj_t\fPobj)\fC [inline]\fP, \fC [static]\fP

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.

static \fBhwloc_obj_t\fP hwloc_get_obj_inside_cpuset_by_depth (\fBhwloc_topology_t\fPtopology, \fBhwloc_const_cpuset_t\fPset, unsigneddepth, unsignedidx)\fC [inline]\fP, \fC [static]\fP

Return the (logically) idx -th object at depth depth included in CPU set set.

Note:

This function cannot work if objects at the given depth do not have CPU sets or if the topology is made of different machines.

static \fBhwloc_obj_t\fP hwloc_get_obj_inside_cpuset_by_type (\fBhwloc_topology_t\fPtopology, \fBhwloc_const_cpuset_t\fPset, \fBhwloc_obj_type_t\fPtype, unsignedidx)\fC [inline]\fP, \fC [static]\fP

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().

Note:

This function cannot work if objects of the given type do not have CPU sets or if the topology is made of different machines.

Author

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.