- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can anybody hel me:
I am using the following routine to calculate the correlation between the two arrays x and y:
int intel_corr(double *h, int inch, double *x, int incx, double *y, int incy, int nh, int nx, int ny){
int status;
VSLConvTaskPtr task;
vsldCorrNewTask1D(&task,VSL_CONV_MODE_AUTO,ny,nx,nh);
status = vsldCorrExec1D(task,y,incy,x,incx,h,inch);
vslCorrDeleteTask(&task);
return status;
}/* intel_corr */
The routine works perfectly and is indeed very fast (much faster than the Numerical Recipes routines).
However, it seems that the function hasa little memory leakage. It is quite small and I can actually live with it, but maybe you guys can tell me if I use the above MKL functions wrongly?
Best regards
Niels
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What MKL version you are using?
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What MKL version you are using?
--Gennady
Hi Gennady
Thanks for the answer. I am using ver 9.0 so I gues I just have to upgrade!
Again thanks a lot and have a nice day
Niels
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Niels,
Could you please sendus detailsabout sizes used by you (and small test-case) when memory leak was detected?
Thanks
-- Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Niels,
Could you please sendus detailsabout sizes used by you (and small test-case) when memory leak was detected?
Thanks
-- Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Niels,
Could you please sendus detailsabout sizes used by you (and small test-case) when memory leak was detected?
Thanks
-- Victor
Hi Victor
I only saw your question today.
The code in the attached file should demonstrate the memory leak.
best
Niels
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Victor
I only saw your question today.
The code in the attached file should demonstrate the memory leak.
best
Niels
Niels,
Thank you for the test case! BTW, did you try it with the latest MKL 10.2.2?
-- Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Niels,
Using valgrind 3.5.0 and MKL 10.2.2, I have on your test-case:
==20378== HEAP SUMMARY:
==20378== in use at exit: 0 bytes in 0 blocks
==20378== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==20378==
==20378== All heap blocks were freed -- no leaks are possible
So, please upgrade your MKL.
-- Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Niels,
Thank you for the test case! BTW, did you try it with the latest MKL 10.2.2?
-- Victor
best
Niels
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page