OpenMPI  0.1.1
Finding a single Object covering at least CPU set

Functions

static __hwloc_inline
hwloc_obj_t
__hwloc_attribute_pure 
hwloc_get_child_covering_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, hwloc_obj_t parent)
 Get the child covering at least CPU set set. More...
 
static __hwloc_inline
hwloc_obj_t
__hwloc_attribute_pure 
hwloc_get_obj_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set)
 Get the lowest object covering at least CPU set set. More...
 

Detailed Description

Function Documentation

static __hwloc_inline hwloc_obj_t __hwloc_attribute_pure hwloc_get_child_covering_cpuset ( hwloc_topology_t topology  __hwloc_attribute_unused,
hwloc_const_cpuset_t  set,
hwloc_obj_t  parent 
)
static

Get the child covering at least CPU set set.

Returns
NULL if no child matches or if set is empty.

References hwloc_obj::cpuset, hwloc_obj::first_child, hwloc_bitmap_isincluded(), hwloc_bitmap_iszero(), and hwloc_obj::next_sibling.

Referenced by hwloc_get_obj_covering_cpuset().

static __hwloc_inline hwloc_obj_t __hwloc_attribute_pure hwloc_get_obj_covering_cpuset ( hwloc_topology_t  topology,
hwloc_const_cpuset_t  set 
)
static

Get the lowest object covering at least CPU set set.

Returns
NULL if no object matches or if set is empty.

References hwloc_obj::cpuset, hwloc_bitmap_isincluded(), hwloc_bitmap_iszero(), hwloc_get_child_covering_cpuset(), and hwloc_get_root_obj().

Referenced by hwloc_get_cache_covering_cpuset().