# MKL_MemStat

Reports amount of memory utilized by MKL Memory Manager.

## Syntax

Fortran:

AllocatedBytes = MKL_MEMSTAT( AllocatedBuffers )

C:

AllocatedBytes = MKL_MemStat ( int* AllocatedBuffers );

## Output Parameters

Name | Type | Description
--- | --- | ---
AllocatedBytes | FORTRAN: INTEGER*8 C: MKL_INT64 | Amount of allocated bytes
AllocatedBuffers | FORTRAN: INTEGER*4, C: int* | Number of allocated buffers

## Description

The function returns the amount of the allocated memory in the AllocatedBuffers buffers. If there are no allocated buffers at the moment, the function returns 0. Call the MKL_MemStat() function to check the Intel MKL memory status.

Note that after calling MKL_FreeBuffers()there should not be any allocated buffers.

See Example “MKL_malloc(), MKL_free(), MKL_MemStat() Usage”.

Parent topic: Memory Functions