Skip to content

Merge test units - #95

Merged
ayzk merged 4 commits into
sz3.3_developfrom
test
Apr 21, 2025
Merged

ayzk merged 4 commits into
sz3.3_developfrom
test

Conversation

@ayzk

@ayzk ayzk commented Apr 21, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@ayzk
ayzk marked this pull request as ready for review April 21, 2025 20:12
@ayzk
ayzk requested a review from Copilot April 21, 2025 20:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR merges new and updated test units for SZ3 modules including quantizer, lossless compression, encoder, and integration tests. The changes introduce comprehensive tests for module functionality and update header dependencies to utilize new memory utility functions.

  • Added unit tests for LinearQuantizer, Lossless compressors, and multiple encoders.
  • Introduced integration tests for SZ3 command-line functionalities including HDF5 repacking.
  • Updated header files to include MemoryUtil and added error checking in data decoding.

Reviewed Changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/test/modules/test_quantizer.cpp Added tests for quantization and recovery functionality.
tools/test/modules/test_lossless.cpp Added tests for lossless decompression and integrity verification.
tools/test/modules/test_encoder.cpp Added tests for various encoder implementations.
tools/test/integration/test_sz3.py Introduced an integration test for SZ3 commands with error bound verification.
tools/test/integration/test_h5.py Added integration test for HDF5 repacking and verification of compression.
tools/test/integration/datalist.txt Provided a list of data files with dimensions used in integration tests.
include/SZ3/quantizer/LinearQuantizer.hpp Updated serialization by including MemoryUtil and uid consistency check.
include/SZ3/lossless/Lossless_zstd.hpp Included MemoryUtil to support serialization tasks.
include/SZ3/lossless/Lossless_bypass.hpp Added include for improved data handling.
include/SZ3/encoder/RunlengthEncoder.hpp Enhanced encoding and decoding with additional bounds checking.
include/SZ3/encoder/Encoder.hpp Minor update: added SZ3/def.hpp include for consistency.
Files not reviewed (2)
  • CMakeLists.txt: Language not supported
  • tools/test/CMakeLists.txt: Language not supported

~/data/miranda-256x384x384/diffusivity.f32.dat 256 384 384
~/data/miranda-256x384x384/pressure.f32.dat 256 384 384
~/data/miranda-256x384x384/velocityz.f32.dat 256 384 384
~/data/miranda-256x384x384/viscocity.f32.dat 256 384 384

Copilot AI Apr 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The filename appears to contain a typo; 'viscocity' should probably be 'viscosity'.

Suggested change
~/data/miranda-256x384x384/viscocity.f32.dat 256 384 384
~/data/miranda-256x384x384/viscosity.f32.dat 256 384 384

Copilot uses AI. Check for mistakes.
Comment thread tools/test/integration/test_sz3.py Resolved
@ayzk
ayzk merged commit a0643d2 into sz3.3_develop Apr 21, 2025
@ayzk
ayzk deleted the test branch April 21, 2025 20:26
ayzk added a commit that referenced this pull request Aug 6, 2025
* Algorithmic updates

* replace pointwise iterator by blockwise iterator

* replace pointwise iterator by blockwise iterator

* Merge test units (#95)

* update python support for Windows

* update config to support save and load to ini

* update error handling

* update conf

* Speeding up SZ3 Python API Compress and Decompress functions (#99)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants