Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v0.9.2

  |   Home   |   Support   |   FAQ   |  

Advanced Traversal Helpers

Functions

int hwloc_get_closest_objs (hwloc_topology_t topology, hwloc_obj_t src, hwloc_obj_t *restrict objs, int max)
 Do a depth-first traversal of the topology to find and sort.

Function Documentation

int hwloc_get_closest_objs ( hwloc_topology_t  topology,
hwloc_obj_t  src,
hwloc_obj_t *restrict  objs,
int  max 
)

Do a depth-first traversal of the topology to find and sort.

all objects that are at the same depth than src. Report in objs up to max physically closest ones to src.

Returns:
the number of objects returned in objs.