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

Intel IPP Memory corruption

janez-makovsek
New Contributor I
1,300 Views

Dear All,

 

There is a problem persisting with Intel IPP "copy" and "move" functions, when the size in bytes exceeds 2GB. (INT_MAX) This issue is more than 10 years old, but we recently bumped in to it again.

Because this is a memory overwrite error, it is very hard to make a test case that fails in the same way on all computers. Mostly we saw this issue with

ippsmove_64f

ippscopy_64f

 

Which can reach 16GB for "int" type of the array length. Somewhere in the logic of these two functions there must be something that overflows occasionally when memory to be copied is larger than 2GB. Maybe they internally partially rely on the logic copied from ippscopy_8u.

 

But it could be that the problem is generally applicable to all ippscopy/ippsmove functions.

Having a test always present that is copying data larger than 2GB is also "trouble", because it will be slow.

 

Could you please have a look at the code and see what could be going wrong for AVX2 and AVX512 code path?

 

Kind Regards!
Atmapuri

0 Kudos
5 Replies
ShanmukhS_Intel
Moderator
1,249 Views

Hi Janez,


Thanks for posting in Intel Communities.


Could you please let us know the IPP version being used by you? If you are using an older version of oneAPI, we recommend you try using the latest oneAPI and let us know if the issue persists.


Best Regards,

Shanmukh.SS


0 Kudos
janez-makovsek
New Contributor I
1,229 Views

We are using latest version.  The issue seems to be complicated by the fact, that you need big (and slow) complicated test case to guard against and also to find this problem. This could be the reason why this has persisted for so many years.

 

Atmapuri

0 Kudos
ShanmukhS_Intel
Moderator
1,176 Views

Hi,


Thank you for submitting your request. For Community support, we would require you to submit a minimum reproduction sample code specific to the issue that provides us the most relevant background information for triage. In case you require privacy, and are unable to share the issue / sample with us publicly and If you are a licensed oneAPI product customer and/or member of Intel’s oneAPI Academic Program, you could submit a ticket for Priority support so that your application can be handled with the required data protection and privacy regulations.


Best Regards,

Shanmukh.SS



0 Kudos
ShanmukhS_Intel
Moderator
1,132 Views

Hi Janez,


A gentle reminder:

Could you please get back to us with the earlier-mentioned details? It helps us in looking into your issue and help you further.


Best Regards,

Shanmukh.SS


0 Kudos
ShanmukhS_Intel
Moderator
1,105 Views

Hi Janez,


A gentle reminder:

Could you please get back to us with the earlier-mentioned details? It helps us in looking into your issue and help you further.


Best Regards,

Shanmukh.SS


0 Kudos
Reply