Intel® Math Kernel Library 2018 Developer Reference - C
Turns off the Intel MKL Memory Allocator for Intel MKL functions to directly use the system malloc/free functions.
int mkl_disable_fast_mm (void);
The mkl_disable_fast_mm function turns the Intel MKL Memory Allocator off for Intel MKL functions to directly use the system malloc/free functions. Intel MKL 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 MKL Developer Guide for details.) Call mkl_disable_fast_mm before calling any Intel MKL functions that require allocation of memory buffers.
Turning the Memory Allocator off negatively impacts performance of some Intel MKL routines, especially for small problem sizes.
Name |
Type |
Description |
---|---|---|
mm |
int |
1 - The Memory Allocator is successfully turned off. 0 - Turning the Memory Allocator off failed. |