Developer Reference for Intel® oneAPI Math Kernel Library for C
mkl_disable_fast_mm
Turns off the Intel® oneAPI Math Kernel Library (oneMKL) Memory Allocator for Intel® oneAPI Math Kernel Library (oneMKL) functions to directly use the system malloc / free functions.
Syntax
intmkl_disable_fast_mm ( void );
Include Files
mkl.h
Description
The mkl_disable_fast_mm function turns the Intel® oneMKL Memory Allocator off for Intel® oneMKL functions to directly use the system malloc / free functions. Intel® oneMKL Memory Allocator uses per-thread memory pools where buffers may be collected for fast reuse. The Memory Allocator is turned on by default for better performance. To turn it off, you can use the mkl_disable_fast_mm function or the MKL_DISABLE_FAST_MM environment variable (See the Intel® oneAPI Math Kernel Library (oneMKL) Developer Guide Linux or Windows for details.) Call mkl_disable_fast_mm before calling any Intel® oneMKL functions that require allocation of memory buffers.
Return Values
Name |
Type |
Description |
|---|---|---|
mm |
int |
1 - The Memory Allocator is successfully turned off. 0 - Turning the Memory Allocator off failed. |