Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Matlab mex and IPP memory allocation

thorant
Beginner
263 Views
Hi

I am using the IPP library from within a mex file in matlab. I need to allocate memory dynamically, but what memory allocation functions should I use to ensure optimality, the mex ones og IPP ones?

I do not need any persistent memory, i.e. memory is freed for each call of the function.

Thanks!

regards
thorsan
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
263 Views

Hi Thorsan,

IPP memory allocation function provides you aligned blocks of memory. The modern processors can access to aligned memory more efficiently. There is no other reason or requirement to use IPP memory allocation functions.

Regards,
Vladimir

0 Kudos
Reply