<?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 You can ignore this post now  in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsFIR-32fc-src-dst-array-sizes/m-p/933251#M16928</link>
    <description>&lt;P&gt;You can ignore this post now - turns out my downsampling factor had actually be set to 10 in the test that was throwing this error.&amp;nbsp; Not quite sure why I need an array 10x input size to output one 1/10th the input size - but I guess that works.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;-Bryan&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2013 17:18:26 GMT</pubDate>
    <dc:creator>Bryan_H_</dc:creator>
    <dc:date>2013-12-09T17:18:26Z</dc:date>
    <item>
      <title>ippsFIR_32fc src/dst array sizes?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsFIR-32fc-src-dst-array-sizes/m-p/933250#M16927</link>
      <description>&lt;P&gt;I'm trying to run a multi-rate FIR filter&amp;nbsp; in version 8.1 on some data but I am getting strange memory errors.&amp;nbsp; Running it under valgrind shows various invalid reads/writes occurring within the call to ippsFIR_32fc.&amp;nbsp; I have tried both with differing source/destinations as well as a shared source/dest.&lt;/P&gt;

&lt;P&gt;Here is basically what I am doing:&lt;/P&gt;

&lt;P&gt;int upFactor = 1;&lt;BR /&gt;
	int downFactor = 2;&lt;BR /&gt;
	int phase = 0;&lt;BR /&gt;
	int numTaps = 21;&lt;BR /&gt;
	int dataSize = 1024;&lt;BR /&gt;
	int stateBufSize;&lt;BR /&gt;
	Ipp8u* pStateBuf;&lt;BR /&gt;
	IppsFIRState_32fc* pState;&lt;/P&gt;

&lt;P&gt;Ipp32fc* pSrcDst = new Ipp32fc[dataSize]; // dataSize * 10 gets rid of memory errors here&lt;/P&gt;

&lt;P&gt;ippsFIRMRGetStateSize_32fc(numTaps, upFactor, downFactor, &amp;amp;stateBufSize);&lt;BR /&gt;
	pStateBuf = new Ipp8u[stateBufSize];&lt;BR /&gt;
	ippsFIRMRInit_32fc(&amp;amp;pState, aTaps, numTaps, upFactor, phase, downFactor, phase, NULL, pStateBuf);&lt;BR /&gt;
	ippsFIR_32fc(pSrcDst, pSrcDst, dataSize, pState);&lt;/P&gt;

&lt;P&gt;None of the calls return any errors, but valgrind reports many read/write errors and I get segfaults on some systems.&amp;nbsp; The only way I've found to get rid of the valgrind errors is to increase the size of my src/dst array(s) by 10x (9x isn't good enough).&amp;nbsp; Am I missing something?&amp;nbsp; The documentation says that source should be numIters*downFactor and dest should be numIters*upFactor.&amp;nbsp; For whatever reason that is still 5x smaller than what I truly need.&lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;-Bryan&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2013 16:57:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsFIR-32fc-src-dst-array-sizes/m-p/933250#M16927</guid>
      <dc:creator>Bryan_H_</dc:creator>
      <dc:date>2013-12-09T16:57:05Z</dc:date>
    </item>
    <item>
      <title>You can ignore this post now</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsFIR-32fc-src-dst-array-sizes/m-p/933251#M16928</link>
      <description>&lt;P&gt;You can ignore this post now - turns out my downsampling factor had actually be set to 10 in the test that was throwing this error.&amp;nbsp; Not quite sure why I need an array 10x input size to output one 1/10th the input size - but I guess that works.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;-Bryan&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2013 17:18:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsFIR-32fc-src-dst-array-sizes/m-p/933251#M16928</guid>
      <dc:creator>Bryan_H_</dc:creator>
      <dc:date>2013-12-09T17:18:26Z</dc:date>
    </item>
    <item>
      <title>Hi Bryan,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsFIR-32fc-src-dst-array-sizes/m-p/933252#M16929</link>
      <description>&lt;P&gt;Hi Bryan,&lt;/P&gt;

&lt;P&gt;in the IPP (signal processing volume) manual you can find that:&lt;/P&gt;

&lt;P align="left"&gt;&lt;FONT face="Verdana" size="1"&gt;&lt;FONT face="Verdana" size="1"&gt;For multi-rate FIR filters, the length of the &lt;/FONT&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT face="Times New Roman"&gt;pSrc &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT face="Verdana" size="1"&gt;&lt;FONT face="Verdana" size="1"&gt;is equal to &lt;/FONT&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT face="Times New Roman"&gt;numIters&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT face="Verdana" size="1"&gt;&lt;FONT face="Verdana" size="1"&gt;*&lt;/FONT&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT face="Times New Roman"&gt;downFactor&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT face="Verdana" size="1"&gt;&lt;FONT face="Verdana" size="1"&gt;, the length of the &lt;/FONT&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT face="Times New Roman"&gt;pDst &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT face="Verdana" size="1"&gt;&lt;FONT face="Verdana" size="1"&gt;is &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Verdana" size="1"&gt;&lt;FONT face="Verdana" size="1"&gt;equal to &lt;/FONT&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT face="Times New Roman"&gt;numIters&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT face="Verdana" size="1"&gt;&lt;FONT face="Verdana" size="1"&gt;*&lt;/FONT&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT lang="JA" size="2"&gt;&lt;FONT face="Times New Roman"&gt;upFactor&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT face="Verdana" size="1"&gt;&lt;FONT face="Verdana" size="1"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P align="left"&gt;&lt;FONT face="Verdana" size="1"&gt;&lt;FONT face="Verdana" size="1"&gt;you see, that FIR function (MR flavor) takes numIters parameter that is not length - it is a number of iterations that are performed. If you&amp;nbsp;allocate buffers according to the manual - everything will be ok.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P align="left"&gt;&lt;FONT face="Verdana" size="1"&gt;&lt;FONT face="Verdana" size="1"&gt;regards, Igor.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 12:06:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsFIR-32fc-src-dst-array-sizes/m-p/933252#M16929</guid>
      <dc:creator>Igor_A_Intel</dc:creator>
      <dc:date>2013-12-11T12:06:43Z</dc:date>
    </item>
  </channel>
</rss>

