OpenMPI  0.1.1
Cache-specific Finding Helpers

Functions

static __hwloc_inline
hwloc_obj_t
__hwloc_attribute_pure 
hwloc_get_cache_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set)
 Get the first cache covering a cpuset set. More...
 
static __hwloc_inline
hwloc_obj_t
__hwloc_attribute_pure 
hwloc_get_shared_cache_covering_obj (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj)
 Get the first cache shared between an object and somebody else. More...
 

Detailed Description

Function Documentation

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

Get the first cache covering a cpuset set.

Returns
NULL if no cache matches

References hwloc_get_obj_covering_cpuset(), HWLOC_OBJ_CACHE, hwloc_obj::parent, and hwloc_obj::type.

static __hwloc_inline hwloc_obj_t __hwloc_attribute_pure hwloc_get_shared_cache_covering_obj ( hwloc_topology_t topology  __hwloc_attribute_unused,
hwloc_obj_t  obj 
)
static

Get the first cache shared between an object and somebody else.

Returns
NULL if no cache matches or if an invalid object is given.

References hwloc_obj::cpuset, hwloc_bitmap_isequal(), HWLOC_OBJ_CACHE, hwloc_obj::parent, and hwloc_obj::type.