hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s(3) Library Functions Manual hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s(3)

# [NAME](#NAME)

hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s

# [SYNOPSIS](#SYNOPSIS)

#include &lt;hwloc.h&gt;

## [Data Fields](#Data_Fields)

hwloc\_uint64\_t **size**  
unsigned **depth**  
unsigned **linesize**  
int **associativity**  
**hwloc\_obj\_cache\_type\_t** **type**

# [Detailed Description](#Detailed_Description)

Cache-specific Object Attributes.

# [Field Documentation](#Field_Documentation)

## [int hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s::associativity](#int_hwloc_obj_attr_u::hwloc_cache_attr_s::associativity)

Ways of associativity, -1 if fully associative, 0 if unknown.

## [unsigned hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s::depth](#unsigned_hwloc_obj_attr_u::hwloc_cache_attr_s::depth)

Depth of cache (e.g., L1, L2, ...etc.).

## [unsigned hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s::linesize](#unsigned_hwloc_obj_attr_u::hwloc_cache_attr_s::linesize)

Cache-line size in bytes. 0 if unknown.

## [hwloc\_uint64\_t hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s::size](#hwloc_uint64_t_hwloc_obj_attr_u::hwloc_cache_attr_s::size)

Size of cache in bytes.

## **hwloc\_obj\_cache\_type\_t** hwloc\_obj\_attr\_u::hwloc\_cache\_attr\_s::type

Cache type.

# [Author](#Author)

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.

Version 2.15.0 Hardware Locality (hwloc)

---

Document: hwloc_obj_attr_u_hwloc_cache_attr_s(3) from hwloc-cuda-13.0 2.15.0-r0 (Chainguard OS)
Source: https://github.com/open-mpi/hwloc
