Defines | |
| #define | HWLOC_TYPE_DEPTH_UNKNOWN -1 |
| No object of given type exists in the topology. | |
| #define | HWLOC_TYPE_DEPTH_MULTIPLE -2 |
| Objects of given type exist at different depth in the topology. | |
Functions | |
| unsigned | hwloc_topology_get_depth (hwloc_topology_t restrict topology) |
| Get the depth of the hierachical tree of objects. | |
| int | hwloc_get_type_depth (hwloc_topology_t topology, hwloc_obj_type_t type) |
Returns the depth of objects of type type. | |
| hwloc_obj_type_t | hwloc_get_depth_type (hwloc_topology_t topology, unsigned depth) |
Returns the type of objects at depth depth. | |
| unsigned | hwloc_get_nbobjs_by_depth (hwloc_topology_t topology, unsigned depth) |
Returns the width of level at depth depth. | |
| static inline int | hwloc_get_nbobjs_by_type (hwloc_topology_t topology, hwloc_obj_type_t type) |
Returns the width of level type type. | |
| int | hwloc_topology_is_thissystem (hwloc_topology_t restrict topology) |
| Does the topology context come from this system? | |
| #define HWLOC_TYPE_DEPTH_MULTIPLE -2 |
Objects of given type exist at different depth in the topology.
| #define HWLOC_TYPE_DEPTH_UNKNOWN -1 |
No object of given type exists in the topology.
| hwloc_obj_type_t hwloc_get_depth_type | ( | hwloc_topology_t | topology, | |
| unsigned | depth | |||
| ) |
Returns the type of objects at depth depth.
| unsigned hwloc_get_nbobjs_by_depth | ( | hwloc_topology_t | topology, | |
| unsigned | depth | |||
| ) |
Returns the width of level at depth depth.
| static inline int hwloc_get_nbobjs_by_type | ( | hwloc_topology_t | topology, | |
| hwloc_obj_type_t | type | |||
| ) | [static] |
Returns the width of level type type.
If no object for that type exists, 0 is returned. If there are several levels with objects of that type, -1 is returned.
| int hwloc_get_type_depth | ( | hwloc_topology_t | topology, | |
| hwloc_obj_type_t | type | |||
| ) |
Returns the depth of objects of type type.
If no object of this type is present on the underlying architecture, or if the OS doesn't provide this kind of information, the function returns HWLOC_TYPE_DEPTH_UNKNOWN.
If type is absent but a similar type is acceptable, see also hwloc_get_type_or_below_depth() and hwloc_get_type_or_above_depth().
| unsigned hwloc_topology_get_depth | ( | hwloc_topology_t restrict | topology | ) |
Get the depth of the hierachical tree of objects.
This is the depth of HWLOC_OBJ_PROC objects plus one.
| int hwloc_topology_is_thissystem | ( | hwloc_topology_t restrict | topology | ) |
Does the topology context come from this system?
1.6.1