Developer Reference

Contents

mkl_mem_stat

Reports the status of the
Intel® MKL
Memory Allocator.

Syntax

MKL_INT64
mkl_mem_stat
(
int
*
AllocatedBuffers
);
Include Files
  • mkl.h
Output Parameters
Name
Type
Description
AllocatedBuffers
int
The number of buffers allocated by
Intel® MKL
.
Description
The function returns the number of buffers allocated by
Intel® MKL
and the amount of memory in these buffers.
Intel® MKL
can allocate the memory buffers internally or in a call to mkl_malloc / mkl_calloc . If no buffers are allocated at the moment, the
mkl_mem_stat
function returns 0. Call
mkl_mem_stat
to check the
Intel® MKL
memory status.
If you free all the memory allocated in calls to
mkl_malloc
or
mkl_calloc
and then call
mkl_free_buffers
, a subsequent call to
mkl_mem_stat
normally returns 0.
Return Values
Name
Type
Description
AllocatedBytes
MKL_INT64
The amount of allocated memory (in bytes).

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