Developer Reference

  • 2021.1
  • 12/04/2020
  • Public Content
Contents

mkl_thread_free_buffers

Frees unused memory allocated by the
Intel® oneAPI Math Kernel Library
Memory Allocator in the current thread.

Syntax

void
mkl_thread_free_buffers
(
void
);
Include Files
  • mkl.h
Description
To improve performance of
Intel® oneAPI Math Kernel Library
, the Memory Allocator uses per-thread memory pools where buffers may be collected for fast reuse. The
mkl_thread_free_buffers
function frees unused memory allocated by the Memory Allocator in the current thread only.
You should call
mkl_thread_free_buffers
after the last call to
Intel® oneAPI Math Kernel Library
functions in the current thread. In large applications, if you suspect that the memory may get insufficient, you may call this function earlier, but anticipate a drop in performance that may occur due to reallocation of buffers for subsequent calls to
Intel® oneAPI Math Kernel Library
functions.

Product and Performance Information

1

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