<?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: Help with ippiMalloc function in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippiMalloc-function/m-p/919181#M15437</link>
    <description>&lt;P&gt;Hi Mittal, seems you did all right. Did you use IPP in DLL or in static libraries?&lt;/P&gt;
&lt;P&gt;Vladimir&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2006 04:08:15 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2006-08-01T04:08:15Z</dc:date>
    <item>
      <title>Help with ippiMalloc function</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippiMalloc-function/m-p/919178#M15434</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am new to the IPP programming. I am trying to replace some old image processing code using the IPP image processing library. I was testing the performance (speed increase) using the ippi functions as compared to my older functions. I started withusing asimple malloc followed bythe ippi copy function and then I replaced the malloc function with ippimalloc. I expected to see a speed increase or at least no difference in speed. But I am seeing a speed decrease by using ippimalloc in place of malloc.&lt;/P&gt;
&lt;P&gt;If anyone can help me findmy mistakethat'd be a great help. Here is the piece of code that explains what I tried:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;IppStatus ippResult;&lt;BR /&gt;IppiSize ippROISize = {m_nImgWidth, m_nImgHeight}; //width and height of image&lt;BR /&gt;int nSrcStep = m_nImgWidth * 2; (as my input is a one channel 16-bit image)&lt;BR /&gt;int nDestStep = m_nImgWidth * 2;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;short* pDestBuffer;&lt;BR /&gt;pDestBuffer = (short*)malloc(m_nImgWidth*m_nImgHeight*sizeof(short));&lt;BR /&gt;TimerStart();&lt;BR /&gt;ippResult = ippiCopy_16s_C1R(pSrcBuffer, nSrcStep,pDestBuffer, nDestStep, ippROISize);&lt;BR /&gt;TimerEnd();&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;AND&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#006400"&gt;&lt;FONT color="#006400"&gt;nDestStep = 0;&lt;BR /&gt;&lt;/FONT&gt;Ipp16s* pDestBuffer;&lt;BR /&gt;pDestBuffer = ippiMalloc_16s_C1(m_nImgWidth, m_nImgHeight, &amp;amp;nDestStep);&lt;BR /&gt;TimerStart();&lt;BR /&gt;ippResult = ippiCopy_16s_C1R(pSrcBuffer, nSrcStep,pDestBuffer, nDestStep, ippROISize);&lt;BR /&gt;TimerEnd();&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The timing that I getfrom the second piece of code is actually a little higher than that from the first piece of code; which is what I dont understand. I expected ippiMalloc to make the copy operation faster. &lt;/P&gt;
&lt;P&gt;Any help or suggestion is greatly appreciated. Thanks in advance.&lt;/P&gt;
&lt;P&gt;-Mittal&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2006 06:01:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippiMalloc-function/m-p/919178#M15434</guid>
      <dc:creator>bhatt1</dc:creator>
      <dc:date>2006-06-27T06:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ippiMalloc function</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippiMalloc-function/m-p/919179#M15435</link>
      <description>&lt;P&gt;Hi Mittal,&lt;/P&gt;
&lt;P&gt;you are right, expected result that using ippiMalloc (whos only the difference from standard malloc is that it alignes memory to 32 byte boundary) should improve performance in comparison with standard CRT malloc. What sizes of images do you use? What version of IPP and on what kind of system you run your test?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2006 05:36:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippiMalloc-function/m-p/919179#M15435</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-06-30T05:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ippiMalloc function</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippiMalloc-function/m-p/919180#M15436</link>
      <description>&lt;P&gt;Hi Vladimir,&lt;/P&gt;
&lt;P&gt;Thanks for replying. The images that I tested with had sizes ranging from 1Kx1K to 3Kx3K (not necessarily square). I tested different dimensions in this range, most of which were odd numbers or not multiples of 32.&lt;/P&gt;
&lt;P&gt;I am running IPP v5.1 on a Windows 2000, P4-2.8G computer with IA-32 Intel Architechture and am using the appropriate IPP libraries.I am using Visual Studio 6.0 to write my code in. &lt;/P&gt;
&lt;P&gt;Isthere anything I am missing or using incorrectly? Let me know if you need more information.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Mittal&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2006 03:03:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippiMalloc-function/m-p/919180#M15436</guid>
      <dc:creator>bhatt1</dc:creator>
      <dc:date>2006-07-11T03:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ippiMalloc function</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippiMalloc-function/m-p/919181#M15437</link>
      <description>&lt;P&gt;Hi Mittal, seems you did all right. Did you use IPP in DLL or in static libraries?&lt;/P&gt;
&lt;P&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2006 04:08:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippiMalloc-function/m-p/919181#M15437</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-08-01T04:08:15Z</dc:date>
    </item>
  </channel>
</rss>

