<?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 Hi John, in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ResamplePolyphaseFixed-32f-crashes/m-p/1087126#M24905</link>
    <description>&lt;P&gt;Hi John,&lt;/P&gt;

&lt;P&gt;We are investigating on it. Thanks.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 05:55:15 GMT</pubDate>
    <dc:creator>Zhen_Z_Intel</dc:creator>
    <dc:date>2017-02-08T05:55:15Z</dc:date>
    <item>
      <title>ResamplePolyphaseFixed_32f crashes</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ResamplePolyphaseFixed-32f-crashes/m-p/1087123#M24902</link>
      <description>&lt;P&gt;I've been experimenting with using the polyphase resampler in IPP for resampling low sample rates without an integer resampling factor. (As an example, upsampling 400Hz to 480Hz).&lt;/P&gt;

&lt;P&gt;I've created a simple test program which upsamples random data, similar to the example code in the documentation for ResamplePolyphaseFixed - however, the executable crashes with a segmentation fault somewhere inside the call to ResamplePolyphaseFixed.&lt;/P&gt;

&lt;P&gt;The code, minus some debug output, is as follows:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;int inputLength=400;
int outputLength=480;
int idealFilterLength=60;

float* input = new float[inputLength];
float* output = new float[outputLength];

for (int i = 0; i &amp;lt; inputLength; i++)
{
 input&lt;I&gt; = (float)random / (float)RAND_MAX;
}

int pSize, pLen, pHeight;

ippsResamplePolyphaseFixedGetSize_32f(inputLength, outputLength, idealFilterLength, &amp;amp;pSize, &amp;amp;pLen, &amp;amp;pHeight, ippAlgHintFast)

IppsResamplingPolyphaseFixed_32f* spec;
spec = (IppsResamplingPolyphaseFixed_32f*)ippsMalloc_8u(pSize);

double pTime;
int outL;

ippsResamplePolyphaseFixed_32f(input, inputLength, output, 0.98f, &amp;amp;pTime, &amp;amp;outL, spec);
&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;The program completes in gdb and valgrind, though valgrind reports a number of invalid reads inside ResamplePolyphaseFixed.&lt;/P&gt;

&lt;P&gt;Any suggestions as to where I'm going wrong with this would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 14:44:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ResamplePolyphaseFixed-32f-crashes/m-p/1087123#M24902</guid>
      <dc:creator>John_H_</dc:creator>
      <dc:date>2017-02-03T14:44:21Z</dc:date>
    </item>
    <item>
      <title>Dear customer,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ResamplePolyphaseFixed-32f-crashes/m-p/1087124#M24903</link>
      <description>&lt;P&gt;Dear customer,&lt;/P&gt;

&lt;P&gt;You probably need to Initialize the&amp;nbsp;structures for data resampling with the factor equal to&amp;nbsp;inRate/outRate. Please use&amp;nbsp;ippsResamplePolyphaseFixedInit_32f before resampling calculation. Here's a sample about how to use IPP polyphase resampling. You could refer to this &lt;A href="https://software.intel.com/en-us/node/502289"&gt;link&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 06:23:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ResamplePolyphaseFixed-32f-crashes/m-p/1087124#M24903</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-02-04T06:23:45Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ResamplePolyphaseFixed-32f-crashes/m-p/1087125#M24904</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I missed out the line which called that function when I was transcribing the code. This is the line after spec is allocated (at line 19 in the snippet in my original post):&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;ippsResamplePolyphaseFixedInit_32f(inputLength, outputLength, pLen, 0.95f, 8.0f, spec, ippAlgHintFast)&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 07:49:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ResamplePolyphaseFixed-32f-crashes/m-p/1087125#M24904</guid>
      <dc:creator>John_H_</dc:creator>
      <dc:date>2017-02-06T07:49:04Z</dc:date>
    </item>
    <item>
      <title>Hi John,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ResamplePolyphaseFixed-32f-crashes/m-p/1087126#M24905</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;

&lt;P&gt;We are investigating on it. Thanks.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 05:55:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ResamplePolyphaseFixed-32f-crashes/m-p/1087126#M24905</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-02-08T05:55:15Z</dc:date>
    </item>
  </channel>
</rss>

