Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v0.9.3

  |   Home   |   Support   |   FAQ   |  

Cache-specific Finding Helpers

Functions

static inline hwloc_obj_t hwloc_get_cache_covering_cpuset (hwloc_topology_t topology, hwloc_cpuset_t set)
 Get the first cache covering a cpuset set.
static inline hwloc_obj_t hwloc_get_shared_cache_covering_obj (hwloc_topology_t topology, hwloc_obj_t obj)
 Get the first cache shared between an object and somebody else.

Function Documentation

static inline hwloc_obj_t hwloc_get_cache_covering_cpuset ( hwloc_topology_t  topology,
hwloc_cpuset_t  set 
) [static]

Get the first cache covering a cpuset set.

Returns:
NULL if no cache matches
static inline hwloc_obj_t hwloc_get_shared_cache_covering_obj ( hwloc_topology_t  topology,
hwloc_obj_t  obj 
) [static]

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

Returns:
NULL if no cache matches