llnl / llnl/zfp

How to use cuZFP's lossless compression to compress int?

Open
#278 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
885
Forks
181
PR merge metrics
No merged PRs in 30d

Description

Hello,
I tried to use cuZFP (https://github.com/mclarsen/cuZFP,which is said that this work has now been added to the official zfp repository) to compress int data in lossless mode.However,I tried to run https://github.com/mclarsen/cuZFP/tree/develop/src/tests/t_encode_decode_1.cpp :
TEST(encode_decode, test_encode_decode_int32) { run_test<int>(512); }
but I found the result lossy:

Decode elapsed time: 0.00001 (s)
Decode rate: 158.95 (MB / sec)
Total absolute error 434.00000000000000000000
Average abosulte error 0.84765625000000000000 with 512 values.
How can I use lossless mode to compress int data?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with cuZFP's src/tests/t_encode_decode_1.cpp and the test_encode_decode_int32 case, then compare its settings with the official zfp lossless-mode documentation. Verify the selected mode for int data and confirm completion with a zero-error encode/decode round trip.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.