<?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 inflate error in ipp_gzip sample code in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767975#M454</link>
    <description>Hello Sergey,&lt;BR /&gt;&lt;BR /&gt;I applied your modification and it helped for all my faulty cases. I am going to keep running tests for a while and if I find another case I will provide it.&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Kamil Zukowski</description>
    <pubDate>Thu, 26 Jul 2012 05:22:32 GMT</pubDate>
    <dc:creator>Kamil_Z_</dc:creator>
    <dc:date>2012-07-26T05:22:32Z</dc:date>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767964#M443</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I am dealing with issue concerning gzip decompression in multi-thread mode. I use sample program provided in ipp\\interfaces\\data-compression\\ipp_gzip. When I compress attached file in multi-thread mode (chunks &amp;gt; 1) and fastest compression level (-1), and then try to decompress it (also in multi-thread mode) the inflation process fails and program crashes. &lt;BR /&gt;&lt;BR /&gt;Position in source code: function stored_block (file ipp_gzip_inflate_mt.c), &lt;BR /&gt;if(state-&amp;gt;in_left == 0) &amp;lt;---- this condition is satisfied&lt;BR /&gt; return ST_ERROR;&lt;BR /&gt;&lt;BR /&gt;Could you confirm this issue?&lt;BR /&gt;&lt;BR /&gt;Kamil Zukowski</description>
      <pubDate>Tue, 24 Apr 2012 10:30:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767964#M443</guid>
      <dc:creator>Kamil_Z_</dc:creator>
      <dc:date>2012-04-24T10:30:04Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767965#M444</link>
      <description>Hi Kamil,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Could you specify what command lines do you use? Exactly.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;gt; ipp_gzip.exe -m 4 -1 test.dat&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;ipp_gzip.exe -d test.dat.gz&lt;/DIV&gt;&lt;DIV&gt;The above lines don't show problem. As far as I remember, you don't need to specify MT mode for decompression. It starts automatically if .gz file is compressed MT and executing CPU has more than one cores.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Sergey&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Apr 2012 15:38:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767965#M444</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2012-04-24T15:38:49Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767966#M445</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I noticed there is no problem for 4 or 8 threads, the error occurs for 2, 6 or 12 threads. Command lines:&lt;BR /&gt;&amp;gt; ipp_gzip.exe -m 2 -1 test&lt;BR /&gt;&amp;gt; ipp_gzip.exe -d test.gz&lt;BR /&gt;output: ipp_gzip.exe: test.gz: inflate error&lt;BR /&gt;&lt;BR /&gt;Kamil Zukowski</description>
      <pubDate>Wed, 25 Apr 2012 05:14:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767966#M445</guid>
      <dc:creator>Kamil_Z_</dc:creator>
      <dc:date>2012-04-25T05:14:11Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767967#M446</link>
      <description>Hi Kamil,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you for notifying us about the problem. We reproduced that. It will be fixed. Meanwhile, try the following:&lt;/DIV&gt;&lt;DIV&gt;in the file ipp_gzip_inflate_mt.c:515-517 change in_len comparison from 4 to 3, i.e.&lt;/DIV&gt;&lt;DIV&gt;[cpp]   if(state-&amp;gt;in_len &amp;lt; 3) {
      if(state-&amp;gt;in_left == 0)
         return ST_ERROR;
[/cpp] It must start to work. Here we need to check if there no regressions after this fix.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Regards and thanks again,&lt;/DIV&gt;&lt;DIV&gt;Sergey&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Apr 2012 11:01:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767967#M446</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2012-04-25T11:01:54Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767968#M447</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you very much. This change solves the problem&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Kamil Zukowski</description>
      <pubDate>Wed, 25 Apr 2012 11:39:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767968#M447</guid>
      <dc:creator>Kamil_Z_</dc:creator>
      <dc:date>2012-04-25T11:39:13Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767969#M448</link>
      <description>Hello Kamil,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I checked with the latest version 7.0 Update 7: compressed &amp;lt; -- &amp;gt; decompressed and compare the outputs and I had the same results:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;..\Intel\Composer XE 2011
SP1\Samples\en_US\IPP\ipp-samples\data-compression\ipp_compress\bin\intel64_cl10&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;gt;ippcompress.exe -gzip -6 test.bin test.gz&lt;/P&gt;

&lt;P&gt;Compressed file test.bin (154163872 bytes) to file
test.gz (89518047 bytes)&lt;/P&gt;

&lt;P&gt;ippdecompress.exe test1.gz test1.rest&lt;/P&gt;

&lt;P&gt;Decoded file test1.gz (89518047 bytes) to file
test1.rest (154163872 bytes)&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;gt;md5sum.exe test.bin&lt;/P&gt;

&lt;P&gt;58b561f75b23b493767846fdf30db648 *test.bin&lt;/P&gt;

&lt;P&gt;&amp;gt;md5sum.exe test1.rest&lt;/P&gt;

&lt;P&gt;58b561f75b23b493767846fdf30db648
*test1.rest&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;====&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;Package ID: w_ipp-samples_p_7.0.7.064&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Package Contents: Intel IPP Samples for Windows*&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;Package ID: w_ipp-samples_p_7.0.7.064Package Contents: Intel IPP Samples for Windows*&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;Regards, Gennady&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Jul 2012 17:02:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767969#M448</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2012-07-16T17:02:43Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767970#M449</link>
      <description>Hello Gennady,&lt;BR /&gt;&lt;BR /&gt;Thank you for response. Did you also try example in \ipp\interfaces\data-compression\ipp_gzip\ with previously proposed code modification? It is essential to reproduce this problem.&lt;BR /&gt;&lt;BR /&gt;Besides ippcompress seems to be single-threaded and -6 sets an input block size, not number of chunks (threads).&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Kamil Zukowski</description>
      <pubDate>Tue, 17 Jul 2012 05:12:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767970#M449</guid>
      <dc:creator>Kamil_Z_</dc:creator>
      <dc:date>2012-07-17T05:12:20Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767971#M450</link>
      <description>Hi Kamil,&lt;DIV&gt;yes, it was my fault. yes, I received the same error with the latest IPP 7.0.7:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;gt;ipp_gzip.exe -d test.bin.gz&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ipp_gzip.exe: test.bin.gz:  crc error in chunk 0&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;in the case if of modification Sergey suggested to do into the previous thread.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;we will fix it asap.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;--Gennady&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Jul 2012 18:13:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767971#M450</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2012-07-17T18:13:17Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767972#M451</link>
      <description>Hello Gennady,&lt;BR /&gt;&lt;BR /&gt;Thank you very much. I would really appreciate it. Even if diagnosis of this issue is not trivial and you are unable to fix it at once please let me know so I will prepare a workarround in my solution.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Kamil Zukowski</description>
      <pubDate>Tue, 17 Jul 2012 20:55:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767972#M451</guid>
      <dc:creator>Kamil_Z_</dc:creator>
      <dc:date>2012-07-17T20:55:56Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767973#M452</link>
      <description>Hello again,&lt;BR /&gt;&lt;BR /&gt;By the way in file ipp_gzip.inflate_mt.c there is line 366:&lt;BR /&gt;[cpp]&lt;BR /&gt;vm_params&lt;I&gt;.to_pos = file_info.st_size; /* Don't read last 8 bytes (4 bytes of CRC and 4 bytes of encoded file length */[/cpp]&lt;BR /&gt;In comment there is an information that last 8 bytes should not be read as they are CRC and file length (not compressed data) - this is clear. However variable "to_pos" has value "file_info.st_size" - total file length, it means these 8 bytes are included in inflate process after all, aren't they? Could you explain it?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Kamil Zukowski&lt;/I&gt;</description>
      <pubDate>Wed, 18 Jul 2012 08:41:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767973#M452</guid>
      <dc:creator>Kamil_Z_</dc:creator>
      <dc:date>2012-07-18T08:41:54Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767974#M453</link>
      <description>Hi Kamil,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Regarding your last decoding issue, please try the following modification of lines 515-517 of ipp_gzip_inflate_mt.c&lt;/DIV&gt;&lt;DIV&gt;[cpp]   if((state-&amp;gt;in_len + (state-&amp;gt;buf_len / 8)) &amp;lt; 4) { /* If not enough input data to get stored block header */
      if(state-&amp;gt;in_left == 0)
         return ST_ERROR;
[/cpp] &lt;/DIV&gt;&lt;DIV&gt;Here, we need to take into account bit buffer length too. It must work well in both of your test cases.&lt;/DIV&gt;&lt;DIV&gt;On your question about suspicious comment above it looks like outdated comment, not completely correct. When we decode the chunk, the decoding process stops when last block decoding returns status equal toST_STREAM_END. So, the decision is made not on amount of data remaining, but on decoding status. You may ignore this comment, we will remove it.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you for findings,&lt;/DIV&gt;&lt;DIV&gt;Sergey&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Jul 2012 13:18:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767974#M453</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2012-07-24T13:18:00Z</dc:date>
    </item>
    <item>
      <title>inflate error in ipp_gzip sample code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767975#M454</link>
      <description>Hello Sergey,&lt;BR /&gt;&lt;BR /&gt;I applied your modification and it helped for all my faulty cases. I am going to keep running tests for a while and if I find another case I will provide it.&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Kamil Zukowski</description>
      <pubDate>Thu, 26 Jul 2012 05:22:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/inflate-error-in-ipp-gzip-sample-code/m-p/767975#M454</guid>
      <dc:creator>Kamil_Z_</dc:creator>
      <dc:date>2012-07-26T05:22:32Z</dc:date>
    </item>
  </channel>
</rss>

