Developer Reference

  • 0.9
  • 09/09/2020
  • Public Content
Contents

mkl_disable_fast_mm

Turns off the
Intel® oneAPI Math Kernel Library
Memory Allocator for
Intel® oneAPI Math Kernel Library
functions to directly use the system
malloc
/
free
functions.

Syntax

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

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804