Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.

2D wavelet transform example problem

umundry
Beginner
107 Views
Has anyone tried to run ref sample app in x64 Debug config? It crashes in the wrap routine. What would be the fix?

Thank you!
0 Kudos
2 Replies
Ying_H_Intel
Employee
107 Views
Hello,

Thank youfor the reports. There is negtive index in Array operation in the code, where 32bit and 64bit have different address as http://www.devx.com/tips/Tip/41349mentioned or http://www.viva64.com/en/l/0013/lession 13.so cause the memery access voliation.

You may workaround the probelm in wrap.h

protected:
template static void wrap(T base, unsigned int len,
unsigned int left, unsigned int right)
{

.....

for(i = 0; i < maxExt; i++)
{
if(i < left)

// base[-(int)(i-lEdge)] = base[len - 1 - i]; // use this or
base[ptrdiff_t(lEdge)-ptrdiff_t(i)]=base[len-1-i]; // Please note, base[ptrdiff_t(lEdge-i)] don't work
......

Best Regards,
Ying H.

umundry
Beginner
107 Views
That did the trick.

Thank you very much, Ying for taking the time to repond even on a Sunday night! Admirable!

Uwe
Reply