Developer Reference for Intel® oneAPI Math Kernel Library for Fortran
mkl_set_memory_limit
On Linux, sets the limit of memory that Intel® oneAPI Math Kernel Library (oneMKL) can allocate for a specified type of memory.
Syntax
stat = mkl_set_memory_limit ( mem_type , limit )
Include Files
Include file: mkl.fi
Module (compiled): mkl_service.mod
Module (source): mkl_service.f90
Input Parameters
Name |
Type |
Description |
|---|---|---|
mem_type |
INTEGER*4 |
Type of memory to limit. Possible values: MKL_MEM_MCDRAM - Multi-Channel Dynamic Random Access Memory (MCDRAM). |
limit |
INTEGER*4 for 32-bit systems INTEGER*8 for 64-bit systems. |
Memory limit in megabytes. |
Description
This function sets the limit for the amount of memory that Intel® oneMKL can allocate for the specified memory type. The limit bounds both internal allocations (inside Intel® oneMKL computation routines) and external allocations (in a call to mkl_malloc , mkl_calloc , or mkl_realloc ). By default no limit is set for memory allocation.
Call mkl_set_memory_limit at most once, prior to calling any other Intel® oneMKL function in your application except mkl_set_interface_layer (Sets the interface layer for Intel® oneMKL at run time. Use with the Single Dynamic Library.) and mkl_set_threading_layer (Sets the threading layer for Intel® oneMKL at run time. Use with the Single Dynamic Library (SDL).) .
Return Values
Type |
Description |
|---|---|
INTEGER*4 |
Status of the function completion:
|