OpenMPI
0.1.1
|
Be sure to see the figure in termsanddefs that shows a complete topology tree, including depths, child/sibling/cousin relationships, and an example of an asymmetric topology where one socket has fewer caches than its peers. More...
Functions | |
HWLOC_DECLSPEC hwloc_obj_t | hwloc_get_obj_by_depth (hwloc_topology_t topology, unsigned depth, unsigned idx) __hwloc_attribute_pure |
Returns the topology object at logical index idx from depth depth . | |
static __hwloc_inline hwloc_obj_t __hwloc_attribute_pure | hwloc_get_obj_by_type (hwloc_topology_t topology, hwloc_obj_type_t type, unsigned idx) |
Returns the topology object at logical index idx with type type . More... | |
Be sure to see the figure in termsanddefs that shows a complete topology tree, including depths, child/sibling/cousin relationships, and an example of an asymmetric topology where one socket has fewer caches than its peers.
|
static |
Returns the topology object at logical index idx
with type type
.
If no object for that type exists, NULL
is returned. If there are several levels with objects of that type, NULL
is returned and ther caller may fallback to hwloc_get_obj_by_depth().
References hwloc_get_obj_by_depth(), hwloc_get_type_depth(), HWLOC_TYPE_DEPTH_MULTIPLE, and HWLOC_TYPE_DEPTH_UNKNOWN.
Referenced by hwloc_get_obj_below_by_type().