Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

MKL_malloc vs _aligned_malloc

Trifon
Novice
823 Views

Arethere any benefits to using MKL_malloc instead of _aligned_malloc ?

Does MKL_malloc link to _aligned_malloc internally?

DoesMKL_malloc do anything more than _aligned_malloc?

Thanks

0 Kudos
2 Replies
Vladimir_Lunev
New Contributor I
823 Views
Hi Trifon,

MKL_Malloc hasn't benefits against _aligned_malloc and doesn't use _aligned_malloc internally.
MKL_Malloc provides the aligned memory on all supported operating systems - Windows/Linux/MAC OS.
So you can use MKL_Malloc as platform-undependent function to get the aligned memory.

-Vladimir

0 Kudos
Trifon
Novice
823 Views

Vladimir,

Thanks a lotfor clarifying this.

0 Kudos
Reply