<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CJPEGEncoder Memory Leak problem if compiler with OpenMP in in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/CJPEGEncoder-Memory-Leak-problem-if-compiler-with-OpenMP-in/m-p/849522#M6396</link>
    <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;I'll create problem report on &lt;A href="http://premier.intel.com"&gt;Intel Premier Support&lt;/A&gt; for you, so you will be notified when update will be available.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jul 2008 14:42:12 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2008-07-28T14:42:12Z</dc:date>
    <item>
      <title>CJPEGEncoder Memory Leak problem if compiler with OpenMP in VS2005</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/CJPEGEncoder-Memory-Leak-problem-if-compiler-with-OpenMP-in/m-p/849521#M6395</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I met a problem toexportjpegfile by CJPEGEndoer.&lt;/P&gt;
&lt;P&gt;Every thing is fine if OpenMP disabled in MS VS 2005 with IPPV5.3. However,I gotmemory leakwhen enable OpenMP.&lt;/P&gt;
&lt;P&gt;I think the problem is that omp_lock_t don't free.It should call &lt;FONT color="#ff0000"&gt;omp_destroy_lock(...)&lt;FONT color="#000000"&gt; to free it in&lt;/FONT&gt; &lt;/FONT&gt;&lt;FONT color="#000000"&gt;VS 2005 after omp_init_lock(...). (I don't know about itfor Intel Compiler).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;For Example in thefile jpegenc.cpp: &lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;#ifdef&lt;/FONT&gt;&lt;FONT size="2"&gt; _OPENMP&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;omp_lock_t* locks;&lt;/P&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;#endif&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;....&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;#ifdef&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; _OPENMP&lt;P&gt;&lt;/P&gt;
&lt;P&gt;locks = (omp_lock_t*)ippMalloc(&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;sizeof&lt;/FONT&gt;&lt;FONT size="2"&gt;(omp_lock_t) * m_numyMCU);&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;for&lt;/FONT&gt;&lt;FONT size="2"&gt;(i = 0; i &amp;lt; m_numyMCU; i++)&lt;P&gt;&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;omp_init_lock(&amp;amp;locks&lt;I&gt;);&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;#endif&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;.......................&lt;/P&gt;
&lt;P&gt;#ifdef&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; _OPENMP&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;//To free locks in VS 2005&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;for&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT color="#ff0000"&gt;(i = 0; i &amp;lt; m_numyMCU; i++)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;{&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;omp_destroy_lock(&amp;amp;locks&lt;I&gt;);&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;ippFree(locks);&lt;/P&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;#endif&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;Best regrads,&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2008 14:24:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/CJPEGEncoder-Memory-Leak-problem-if-compiler-with-OpenMP-in/m-p/849521#M6395</guid>
      <dc:creator>danielwang1971</dc:creator>
      <dc:date>2008-07-28T14:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: CJPEGEncoder Memory Leak problem if compiler with OpenMP in</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/CJPEGEncoder-Memory-Leak-problem-if-compiler-with-OpenMP-in/m-p/849522#M6396</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;I'll create problem report on &lt;A href="http://premier.intel.com"&gt;Intel Premier Support&lt;/A&gt; for you, so you will be notified when update will be available.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2008 14:42:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/CJPEGEncoder-Memory-Leak-problem-if-compiler-with-OpenMP-in/m-p/849522#M6396</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-07-28T14:42:12Z</dc:date>
    </item>
  </channel>
</rss>

