Allocates the aligned memory buffer.
FORTRAN:
a_ptr = mkl_malloc( alloc_size, alignment )
C:
a_ptr = mkl_malloc( alloc_size, alignment );
Name |
Type |
Description |
---|---|---|
alloc_size |
FORTRAN: INTEGER*4 C: size_t |
Size of the buffer to be allocated Note that Fortran type INTEGER*4 is given for the 32-bit systems. Otherwise, it is INTEGER*8. |
alignment |
FORTRAN: INTEGER*4 C: int |
Alignment of the allocated buffer |
Name |
Type |
Description |
---|---|---|
a_ptr |
FORTRAN: POINTER C: void* |
Pointer to the allocated buffer |
The function allocates a size-bytes buffer, aligned on the alignment boundary, and returns a pointer to this buffer.
The function returns NULL if size < 1. If alignment is not power of 2, the alignment 32 is used.
See Example "mkl_malloc(), mkl_free(), mkl_mem_stat() Usage".