Community
cancel
Showing results for 
Search instead for 
Did you mean: 
thorant
Beginner
41 Views

Matlab mex and IPP memory allocation

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
41 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