Developer Reference for Intel® oneAPI Math Kernel Library for Fortran
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-0F5F874C-6EE9-4E26-B3E1-CB5A11B3FDA7
Visible to Intel only — GUID: GUID-0F5F874C-6EE9-4E26-B3E1-CB5A11B3FDA7
mkl_malloc
Allocates an aligned memory buffer.
Syntax
a_ptr = mkl_malloc( alloc_size, alignment )
Fortran Include Files/Modules
- Include file: mkl.fi
- Module (compiled): mkl_service.mod
- Module (source): mkl_service.f90
Input Parameters
Name |
Type |
Description |
---|---|---|
alloc_size |
INTEGER*4 for 32-bit systems |
Size of the buffer to be allocated. |
alignment |
INTEGER*4 |
Alignment of the buffer. |
Description
The function allocates an alloc_size-byte buffer aligned on the alignment-byte boundary.
If alignment is not a power of 2, the 64-byte alignment is used.
Return Values
Name |
Type |
Description |
---|---|---|
a_ptr |
POINTER |
Pointer to the allocated buffer if alloc_size≥ 1, NULL if alloc_size < 1. |