#include <hwloc.h>
Cache-specific Object Attributes.
Ways of associativity, -1 if fully associative, 0 if unknown.
Depth of cache (e.g., L1, L2, ...etc.)
Cache-line size in bytes. 0 if unknown.
Size of cache in bytes.
Cache type.