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

memory leaks

yomholedet
Beginner
347 Views
how i can detect memory leaks cause by intel
ippsMalloc
forget ippsFree

{
float* x = ippsmalloc(5)

//no free
}
also how to detect buffer over run
float* x = ippsMalloc(5)
x[7]=90; //problem

1. bounds checker can detect new without delete but it not detect intel
2. using technique crtdbg.h ... _CrtCheckMemory() , not detect memory leaks from ippsmalloc only of new


so waht is yours advice ....
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
347 Views
Hello,

I would recommend you to try Intel Parallel Studio XE 2011 product which integrates several Intel Software Developers Products into one bundle (including IPP and Inspector).

I was able to detect memory leak and locate source code line where ippMalloc function was called without counterpart ippFree with Microsoft Visual Studio 2010 and Intel Inspector XE 2011using predefined analisys set"Quick:Memory ErrorAnalisys: Locate Memory Problems" onpiece of code like your:

void main(void)
{
char* ptr = (char*)ippMalloc(5);
return;
}

Regards,
Vladimir
0 Kudos
yomholedet
Beginner
347 Views
it seems to expensive now
i will try to wrap it with my memory allocator that counts allocated bytes
0 Kudos
Naveen_G_Intel
Employee
347 Views

Hi,
As a 1st step, you can use an evaluation version and find out memory leak information. If you are happy with the usage, you can buy from your nearest reseller. After purchase, you will get world class support from tools experts..

Thanks,

Naveen Gv

0 Kudos
Reply