<?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 latest IPP samples slowdown with timing in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/latest-IPP-samples-slowdown-with-timing/m-p/911279#M14288</link>
    <description>&lt;P&gt;I compiled j2kit (both x86 and x64 version) with Intel compiler 10.1.020 using the same compiler switches with LINKAGE=static, MULTITHREADING=omp with and without defining TIMING.&lt;/P&gt;
&lt;P&gt;Without TIMING, it takes ~1,500 ms for 3328 x 4992 BMP to get compressed into jp2 using default compression ratio (command line: j2kit -i test.bmp -o test.jp2). I measured the elapsed time using stopwatch, repeated the test three times and picked the fastest run.&lt;/P&gt;
&lt;P&gt;With TIMING=1, it takes ~4,100 ms for the same image. That is 2.5x slowdown!!! Note that I have checked LINKAGE (static .vs. dynamic) and it doesn't matter, only TIMING is affecting the result.&lt;/P&gt;
&lt;P&gt;What would be the reason for such a huge performance drop considering that the timing code is called only twice, once at the beginning of encode/decode and once at the end?&lt;/P&gt;
&lt;P&gt;Should I perhaps cross-post this to the Intel Compiler forum (perhaps the Timer.h interferes with code optimization)?&lt;/P&gt;
&lt;P&gt;Or is that perhaps just ippGetCpuFreqMhz() wasting ~2,500 ms at startup in order to (incorrectly) determine actual CPU frequency and somehow (again incorrectly) adding to the running time of the timed application?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Mar 2008 03:14:40 GMT</pubDate>
    <dc:creator>levicki</dc:creator>
    <dc:date>2008-03-25T03:14:40Z</dc:date>
    <item>
      <title>latest IPP samples slowdown with timing</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/latest-IPP-samples-slowdown-with-timing/m-p/911279#M14288</link>
      <description>&lt;P&gt;I compiled j2kit (both x86 and x64 version) with Intel compiler 10.1.020 using the same compiler switches with LINKAGE=static, MULTITHREADING=omp with and without defining TIMING.&lt;/P&gt;
&lt;P&gt;Without TIMING, it takes ~1,500 ms for 3328 x 4992 BMP to get compressed into jp2 using default compression ratio (command line: j2kit -i test.bmp -o test.jp2). I measured the elapsed time using stopwatch, repeated the test three times and picked the fastest run.&lt;/P&gt;
&lt;P&gt;With TIMING=1, it takes ~4,100 ms for the same image. That is 2.5x slowdown!!! Note that I have checked LINKAGE (static .vs. dynamic) and it doesn't matter, only TIMING is affecting the result.&lt;/P&gt;
&lt;P&gt;What would be the reason for such a huge performance drop considering that the timing code is called only twice, once at the beginning of encode/decode and once at the end?&lt;/P&gt;
&lt;P&gt;Should I perhaps cross-post this to the Intel Compiler forum (perhaps the Timer.h interferes with code optimization)?&lt;/P&gt;
&lt;P&gt;Or is that perhaps just ippGetCpuFreqMhz() wasting ~2,500 ms at startup in order to (incorrectly) determine actual CPU frequency and somehow (again incorrectly) adding to the running time of the timed application?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:14:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/latest-IPP-samples-slowdown-with-timing/m-p/911279#M14288</guid>
      <dc:creator>levicki</dc:creator>
      <dc:date>2008-03-25T03:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: latest IPP samples slowdown with timing</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/latest-IPP-samples-slowdown-with-timing/m-p/911280#M14289</link>
      <description>&lt;P&gt;&lt;FONT face="Arial" size="2"&gt;Dear Customer,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;FONT size="2"&gt;Do you try to measure JPEG decoding performance at which system? Do you try to measure its performance in multithreading environment? The JPEG2000 sample actually provides the timing feature and here is an example to illustrate howto measure JPEG2000 decoding/encoding performance in mulitthreaded system:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;step 1: &amp;gt;build32 icl10 dynamic omp timing ( Intel Compiler and OpenMP enabling for measuring timing)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;step 2: set OMP_NUM_THREADS=1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;step 3: JPEG2000 encoding: j2kit.exe -i ole0.bmp -o ole0.jp2 -linf-&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;     repeat several times and average the time.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;step 4: set OMP_NUM_THREADS=2&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;step 5: repeat step 3 several times &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT size="1"&gt;     Get comparison data from 1thread to 2 threads for J2K encoding&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;step 6: set OMP_NUM_THREADS=1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;step 7: JPEG2000 decoding performance: j2kit.exe -i ole0.jp2 -o tmp.bmp -linf-&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;step 8: set OMP_NUM_THREADS=2&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;step 9" repeat step 7 several times&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="1"&gt;&lt;SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;     Get comparison data from 1thread to 2 threads for J2K decoding.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still observer slow perofrmance, please contact us by submitting an issue in Intel Premier Support with including the image data and detailed system configuration.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;BR /&gt;Ying S&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:03:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/latest-IPP-samples-slowdown-with-timing/m-p/911280#M14289</guid>
      <dc:creator>Ying_S_Intel</dc:creator>
      <dc:date>2008-03-26T21:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: latest IPP samples slowdown with timing</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/latest-IPP-samples-slowdown-with-timing/m-p/911281#M14290</link>
      <description>&lt;P&gt;I did not try to measure JPEG decoding performance, only &lt;B&gt;JPEG2000 encoding&lt;/B&gt;.&lt;/P&gt;
&lt;P&gt;As I wrote in my post above, I did test multi-threading performance. My full hardware configuration is listed &lt;A href="http://www.levicki.net/pc/pc.php" target="_blank" rel="nofollow"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I am well aware that "JPEG2000 sample actually provides the timing feature" — for some reason that timing feature is exactly the cause of the decoding slowdown I have reported.&lt;/P&gt;
&lt;P&gt;Please read my first post more carefully so I don't have to repeat myself.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:19:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/latest-IPP-samples-slowdown-with-timing/m-p/911281#M14290</guid>
      <dc:creator>levicki</dc:creator>
      <dc:date>2008-03-26T21:19:47Z</dc:date>
    </item>
  </channel>
</rss>

