Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

mkl_mem_stat

Reports the status of the Intel® oneAPI Math Kernel Library Memory Allocator.

Syntax

AllocatedBytes = mkl_mem_stat( AllocatedBuffers )

Fortran Include Files/Modules
  • 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® oneAPI Math Kernel Library.

Description

The function returns the number of buffers allocated by Intel® oneAPI Math Kernel Library and the amount of memory in these buffers. Intel® oneAPI Math Kernel Library can allocate the memory buffers internally or in a call tomkl_malloc/mkl_calloc. If no buffers are allocated at the moment, the mkl_mem_stat function returns 0. Call mkl_mem_statto check the Intel® oneAPI Math Kernel Library memory status.

NOTE:

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

INTEGER*8

The amount of allocated memory (in bytes).