Developer Guide

  • 2021.2
  • 06/11/2021
  • Public
Contents

Cache Allocation Library

Before using the data streams optimizer and cache allocation tools on the same system, see the instructions in Compatibility between Data Streams Optimizer and Cache Allocation to avoid possible technical and performance issues.
The
cache allocation library
is a set of C language APIs that help reduce memory access latency by allocating buffers from software SRAM buffers.
Benefits:
  • Software SRAM buffers are better protected in cache and less likely to be evicted by the same or other applications.
  • The library enables you to move your application from one Intel® platform to another without refactoring your code. As long as your application is running on a supported platform, the library will assess the memory hierarchy of the platform and request memory from a software SRAM buffer based on the latency.
The library is useful when you need to bound the worst-case execution time (WCET) of a particular function, for example,
foo()
in your application and cannot achieve that WCET with malloc because of memory access jitter. You can replace malloc with the cache allocation library to bound the access latency of the buffer and in turn reduce WCET.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.