<?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: CPU Usage Problem for FIR Filter. in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884856#M10633</link>
    <description>&lt;DIV style="margin:0px;"&gt;Oh~&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;I understand your reply. Thank you for your reply.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Then, does it help to repeat this job using OPENMP,&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;because IPP function use only one cpu.&lt;BR /&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 11 Dec 2008 12:17:09 GMT</pubDate>
    <dc:creator>dolsei0</dc:creator>
    <dc:date>2008-12-11T12:17:09Z</dc:date>
    <item>
      <title>CPU Usage Problem for FIR Filter.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884852#M10629</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;
&lt;P&gt;I am executing a C++ code implemented using IPP,for repeat FIR filtering 640*480 times for 512 data.&lt;/P&gt;
&lt;P&gt;While executing code on 2way Xeon Quad CPU ( = 8 core), the CPU usage is just 12%.&lt;/P&gt;
&lt;P&gt;Just one cpu works.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;What is my mistake ?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;My system is like this.&lt;/P&gt;
&lt;P&gt;Xeon E5320 Quad - 2 way : 8 Core&lt;/P&gt;
&lt;P&gt;Windows Server 2003 R2 x86&lt;/P&gt;
&lt;P&gt;IPP : 5.3.3&lt;/P&gt;
&lt;P&gt;IPP Dynamic Link Library&lt;/P&gt;
&lt;P&gt;Visual Studio 6.0 + Intel Compiler 10.1&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;int nTotalPixel = m_ImageSizeX * m_ImageSizeY;&lt;/P&gt;
&lt;P&gt;int i;&lt;BR /&gt;int k;&lt;BR /&gt;int len = m_nImage;&lt;BR /&gt;IppsFIRState_32f* pState;&lt;BR /&gt;IppStatus st;&lt;BR /&gt;Ipp64f* taps = ippsMalloc_64f(tapslen*sizeof(Ipp64f));&lt;BR /&gt;Ipp32f* taps_32f = ippsMalloc_32f(tapslen*sizeof(Ipp32f));&lt;BR /&gt;Ipp32f* pSrc = ippsMalloc_32f(len*sizeof(Ipp32f));&lt;BR /&gt;Ipp32f* FIRDst = ippsMalloc_32f(len*sizeof(Ipp32f));&lt;BR /&gt;Ipp32f* pDL = ippsMalloc_32f(tapslen*sizeof(Ipp32f));&lt;BR /&gt;ippsZero_32f(pDL,tapslen);&lt;/P&gt;
&lt;P&gt;// COMPUTES TAPSLEN COEFFICIENTS FOR BANDPASS FIR FILTER..&lt;BR /&gt;ippsFIRGenBandpass_64f( LowFreq, HighFreq, taps, tapslen, ippWinHamming, ippTrue);&lt;BR /&gt;ippsConvert_64f32f(taps,taps_32f,tapslen);&lt;/P&gt;
&lt;P&gt;// INITIALIZE FIR FILTER..&lt;BR /&gt;ippsFIRInitAlloc_32f(&amp;amp;pState,taps_32f,tapslen, pDL);&lt;/P&gt;
&lt;P&gt;BYTE *pImageBuffer;&lt;BR /&gt;&lt;BR /&gt;for(i= 0; i &amp;lt; nTotalPixel; ++i)&lt;BR /&gt;{&lt;BR /&gt;pImageBuffer = &amp;amp;m_pImageBuffer[i*m_nBuffer];&lt;BR /&gt;&lt;BR /&gt;//GENERATE SOURCE VECTOR&lt;BR /&gt;ippsConvert_8u32f(pImageBuffer,pSrc,len);&lt;BR /&gt;&lt;BR /&gt;// FILTER AN INPUT VECTOR&lt;BR /&gt;ippsFIR_32f(pSrc, FIRDst, len, pState);&lt;/P&gt;
&lt;P&gt;ippsAddC_32f_I(128.,FIRDst,len);&lt;BR /&gt;ippsConvert_32f8u_Sfs(FIRDst,pImageBuffer,len,ippRndNear,0);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;ippsFIRFree_32f(pState);&lt;/P&gt;
&lt;P&gt;ippsFree(pSrc);&lt;BR /&gt;ippsFree(FIRDst);&lt;BR /&gt;ippsFree(taps);&lt;BR /&gt;ippsFree(taps_32f);&lt;BR /&gt;ippsFree(pDL);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2008 11:21:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884852#M10629</guid>
      <dc:creator>dolsei0</dc:creator>
      <dc:date>2008-12-11T11:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Usage Problem for FIR Filter.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884853#M10630</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;IPP internally estimates size of data to process and turn on threading only when it gives performance gain.&lt;/P&gt;
&lt;P&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2008 11:37:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884853#M10630</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-12-11T11:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Usage Problem for FIR Filter.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884854#M10631</link>
      <description>&lt;DIV style="margin:0px;"&gt;Thank for your reply.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;I just try to FIR Filter for just 512 data.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;And repeat this same job 640 * 480 times.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Under this operation, I don't understand that IPP cannot surpport the multi thread..&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Dec 2008 12:01:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884854#M10631</guid>
      <dc:creator>dolsei0</dc:creator>
      <dc:date>2008-12-11T12:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Usage Problem for FIR Filter.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884855#M10632</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;Do you expect library should launch 8 threads to process 64 elements of data in each?&lt;/P&gt;
&lt;P&gt;Are you aware of the cost for thread launch? It takes between 2000 and 3000 processor clocks.&lt;/P&gt;
&lt;P&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2008 12:05:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884855#M10632</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-12-11T12:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Usage Problem for FIR Filter.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884856#M10633</link>
      <description>&lt;DIV style="margin:0px;"&gt;Oh~&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;I understand your reply. Thank you for your reply.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Then, does it help to repeat this job using OPENMP,&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;because IPP function use only one cpu.&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Dec 2008 12:17:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884856#M10633</guid>
      <dc:creator>dolsei0</dc:creator>
      <dc:date>2008-12-11T12:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Usage Problem for FIR Filter.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884857#M10634</link>
      <description>&lt;DIV style="margin:0px;"&gt;If you can filter your image with 2D FIR then you may consider to call ippiFIR filter function. Of course it is possible to launch threads on top of IPP. You may use OpenMP threading or any other threading API.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Vladimir&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2008 12:21:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/CPU-Usage-Problem-for-FIR-Filter/m-p/884857#M10634</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-12-11T12:21:13Z</dc:date>
    </item>
  </channel>
</rss>

