Repository navigation
Merge test units - #95
Merged
Merged
Conversation
ayzk
marked this pull request as ready for review
April 21, 2025 20:12
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
Co-authored-by: Copilot <[email protected]>
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.