- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I met a problem toexportjpegfile by CJPEGEndoer.
Every thing is fine if OpenMP disabled in MS VS 2005 with IPPV5.3. However,I gotmemory leakwhen enable OpenMP.
I think the problem is that omp_lock_t don't free.It should call omp_destroy_lock(...) to free it in VS 2005 after omp_init_lock(...). (I don't know about itfor Intel Compiler).
For Example in thefile jpegenc.cpp:
......
#ifdef _OPENMP
omp_lock_t* locks;
#endif
....
#ifdef
_OPENMPlocks = (omp_lock_t*)ippMalloc(
sizeof(omp_lock_t) * m_numyMCU); for(i = 0; i < m_numyMCU; i++){
omp_init_lock(&locks);
}
#endif
.......................
#ifdef
_OPENMP//To free locks in VS 2005
for(i = 0; i < m_numyMCU; i++)
{
omp_destroy_lock(&locks);
}
ippFree(locks);
#endif
Best regrads,Daniel
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Daniel,
Your observation is correct, we have also found that mistake (unfortunately after IPP 6.0 beta update release). It will be fixed in the next IPP update release and of course in the next new version (6.0). Thanks for your interest to IPP product and IPP based JPEG codec and for submitting issue report.
I'll create problem report on Intel Premier Support for you, so you will be notified when update will be available.
Regards,
Vladimir

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page