For DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/decompress failed to decompress .gz file
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu trong DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/decompress và tái hiện tình trạng treo bằng một tệp được tạo bởi Linux gzip, sử dụng các đầu vào đính kèm nếu có. Kiểm tra kernel giải mã Huffman và vòng lặp của nó xung quanh giá trị dịch chuyển đã được báo cáo. Được xem là hoàn tất khi tệp thực thi đã build kết thúc và giải nén đúng các tệp do tiện ích gzip của Linux tạo ra, không chỉ mẫu trong repository.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
I build the decompressor for gzip, but it can only decompress the file offer in the repo. Most files I compressed using cpu version gzip is not able to be decompressed.
Version
I currently using oneAPI 2022.1 and the Code Sample v0.0.51 extension for VScode to pull the code.
Environment
Ubuntu 20.04
Steps to reproduce
Use linux built-in gzip to compress a file. The compression ratio should around 4, and the size of output file should over 50MB.
Then the executable we compile with this repo to decompress the file created by linux built-in version gzip.
Observed behavior
The decompression will stuck in a while loop and will never terminate. I print out some information to help me debug the issue, and found out the bug should locate in the huffman decoding kernel.
Here is some debug log I print:
Using GZIP decompression
Decompressing '../data/gzip/log-test.log.gz' 2 times
Input file size : 677.904KB
expected output size :2706127
Launching kernels for run 0
literals_per_cycle for producer is : 1
in_count = 677904
Iteration count = 677904
literals per cycle is : 4
literal per cycle from consumer = 4
huffman shifting = 1098876287
huffman shifting = 1098876287
huffman shifting = 1098876287
huffman shifting = 1098876287
huffman shifting = 1098876287
Expected behavior
I expected the decompressor can decompress all the file I compressed with CPU version gzip
I attached 3 files I used to debug.
log-test.log.gz
txt-test2.txt.gz
pdf-test.pdf.gz
- Ngôn ngữ chính
- C++
- Star
- 1.2k
- Fork
- 745
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của oneapi-src/oneAPI-samples
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
oneapi-src/oneAPI-samples#2764 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
oneapi-src/oneAPI-samples#2748 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face Đang mởquestion
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
oneapi-src/oneAPI-samples#2739 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
oneapi-src/oneAPI-samples#2705 ·
Tất cả issue của oneapi-src/oneAPI-samples
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
brave/brave-browser#59300 ·
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main Đang mởai_reviewed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
ydb-platform/ydb#53974 · 3 bình luận ·