<?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 need help with FIR filter in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-with-FIR-filter/m-p/947920#M18350</link>
    <description>&lt;P&gt;I tried a simple example and ran valgrind on it. &amp;nbsp;It reveals memory corruption. &amp;nbsp;So, I don't understand how to use FIR filter functions. &amp;nbsp;The complete main program is attached, but the problem occurs just constructing the filter.&lt;/P&gt;
&lt;P&gt;I'm using:&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;boost::shared_ptr&amp;lt;Ipp8u&amp;gt; buf;&lt;BR /&gt; IppsFIRState_64f* pState;&lt;/P&gt;
&lt;P&gt;if (ippsFIRGetStateSize_64f (coef.getShape()[0], &amp;amp;bufsize) != 0)&lt;BR /&gt;&amp;nbsp; throw std::runtime_error ("fir_double");&lt;/P&gt;
&lt;P&gt;buf = boost::shared_ptr&amp;lt;Ipp8u&amp;gt; (new Ipp8u (bufsize*sizeof(double)));&lt;BR /&gt; if (ippsFIRInit_64f (&amp;amp;pState, &amp;amp;coef[0], coef.getShape()[0], 0, (Ipp8u*)(buf.get())) != 0)&lt;/P&gt;
&lt;P&gt;throw std::runtime_error ("fir_double");&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I suspect problem is, who allocated memory for pState? &amp;nbsp;I didn't. &amp;nbsp;But nothing in the docs explains this or shows an example.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2013 17:50:09 GMT</pubDate>
    <dc:creator>Becker__Neal</dc:creator>
    <dc:date>2013-10-04T17:50:09Z</dc:date>
    <item>
      <title>need help with FIR filter</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-with-FIR-filter/m-p/947920#M18350</link>
      <description>&lt;P&gt;I tried a simple example and ran valgrind on it. &amp;nbsp;It reveals memory corruption. &amp;nbsp;So, I don't understand how to use FIR filter functions. &amp;nbsp;The complete main program is attached, but the problem occurs just constructing the filter.&lt;/P&gt;
&lt;P&gt;I'm using:&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;boost::shared_ptr&amp;lt;Ipp8u&amp;gt; buf;&lt;BR /&gt; IppsFIRState_64f* pState;&lt;/P&gt;
&lt;P&gt;if (ippsFIRGetStateSize_64f (coef.getShape()[0], &amp;amp;bufsize) != 0)&lt;BR /&gt;&amp;nbsp; throw std::runtime_error ("fir_double");&lt;/P&gt;
&lt;P&gt;buf = boost::shared_ptr&amp;lt;Ipp8u&amp;gt; (new Ipp8u (bufsize*sizeof(double)));&lt;BR /&gt; if (ippsFIRInit_64f (&amp;amp;pState, &amp;amp;coef[0], coef.getShape()[0], 0, (Ipp8u*)(buf.get())) != 0)&lt;/P&gt;
&lt;P&gt;throw std::runtime_error ("fir_double");&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I suspect problem is, who allocated memory for pState? &amp;nbsp;I didn't. &amp;nbsp;But nothing in the docs explains this or shows an example.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 17:50:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-with-FIR-filter/m-p/947920#M18350</guid>
      <dc:creator>Becker__Neal</dc:creator>
      <dc:date>2013-10-04T17:50:09Z</dc:date>
    </item>
  </channel>
</rss>

