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

IPP Image Processing performance

chris_griffin
Beginner
615 Views
Dear Image Processors:

Will the performance of the ippi_* functions be significantly different if the image buffers are allocated with "new" rather than with ippiMalloc_* ?

I had assumed NO, but maybe (hopefully) I am wrong.

Please let me know
Chris

0 Kudos
3 Replies
Vladimir_Dudnik
Employee
615 Views

Hi Chris,

sometime it does, because of the modern processors can access data faster if particular alignment conditions are met.

And this isthe reason why we indtroducememory allocationfunctions (which provide you aligned memory block)in IPP.

Regards,
Vladimir

0 Kudos
chris_griffin
Beginner
615 Views
Hi Vladimir,

Thank you for your reply. I have written my image class to always provide an image pitch which is a multiple of 32 bytes. In this case, I would expect the behavior of the library to be equivalent whether I call IPP's allocators or "new"

Let me know if I'm off base here.

Thank you,
Chris Griffin
0 Kudos
Vladimir_Dudnik
Employee
615 Views

Hi Chris,

yes, that's correct. Only difference between CRT malloc/new and ippMalloc is alignment. So, if you provide the same alignment there should not be difference in performance.

Regards,
Vladimir

0 Kudos
Reply