Developer Reference for Intel® oneAPI Math Kernel Library for Fortran
mkl_mem_stat
Reports the status of the Intel® oneAPI Math Kernel Library (oneMKL) Memory Allocator.
Syntax
AllocatedBytes = mkl_mem_stat ( AllocatedBuffers )
Include Files
Include file: mkl.fi
Module (compiled): mkl_service.mod
Module (source): mkl_service.f90
Output Parameters
Name |
Type |
Description |
|---|---|---|
AllocatedBuffers |
INTEGER*4 |
The number of buffers allocated by Intel® oneMKL . |
Description
The function returns the number of buffers allocated by Intel® oneMKL and the amount of memory in these buffers. Intel® oneMKL 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® oneMKL memory status.
Return Values
Name |
Type |
Description |
|---|---|---|
AllocatedBytes |
INTEGER*8 |
The amount of allocated memory (in bytes). |