Skip to content

Conversation

@ayzk
Copy link
Collaborator

@ayzk ayzk commented Apr 21, 2025

Major changes:

  1. upgrade interp to QOZ2
  2. replace pointwise iterator to blockwise iterator, update lorenzo & regression code.

@ayzk ayzk requested a review from Copilot April 21, 2025 17:45

This comment was marked as outdated.

@ayzk ayzk assigned ayzk and JLiu-1 Apr 21, 2025
@JLiu-1
Copy link
Collaborator

JLiu-1 commented Apr 21, 2025

One comment:
The interpolator is not updated to full QoZ2, but we have integrated its most efficient, effective, and lightweight-coded components.

ayzk and others added 6 commits April 21, 2025 16:17
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.


Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ayzk ayzk requested a review from Copilot June 20, 2025 15:11
Copy link

Copilot AI left a comment

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 refactors the zstd integration to fetch and build against an external zstd release, and adds comprehensive SZ3 tests.

  • Remove all local zstd source and header files
  • Update CMakeLists to use FetchContent for zstd 1.4.5 and adjust include/source paths
  • Add new unit and integration tests under tools/test, including Python and C++ suites

Reviewed Changes

Copilot reviewed 102 out of 173 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tools/zstd/CMakeLists.txt Switched to FetchContent-based zstd integration
tools/zstd/compress/.c/h, common/.c/h, etc. Deleted local zstd implementation sources
tools/test/modules/*.cpp Added module-level C++ tests for Quantizer, Lossless, Encoder
tools/test/integration/*.py Added integration tests (SZ3 CLI, HDF5 repacking)
tools/test/deprecated/test_arithmetic_coding.cpp Updated null-checks to nullptr in deprecated test


if os.path.exists(decompressed_file):
os.remove(decompressed_file)

Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

The function test_file never returns the parsed (abs_err, rel_err) values. Add a return abs_err, rel_err at the end so callers receive the expected results.

Suggested change
return abs_err, rel_err

Copilot uses AI. Check for mistakes.
@@ -1,76 +1,91 @@
include(FetchContent)
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

Add a cmake_minimum_required(VERSION 3.14) (or newer) and a project(...) declaration at the top to ensure FetchContent is available and project metadata is set correctly.

Copilot uses AI. Check for mistakes.
data[i] = i % 100;
}

size_t data_len = 0, conf_len = 0;
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

[nitpick] The variables data_len and conf_len are assigned but never used. Either remove them or assert their values to catch potential buffer issues.

Copilot uses AI. Check for mistakes.
ayzk and others added 9 commits June 29, 2025 20:23
* Modified pysz.py to change how data is transferred back to Python from C++ in both the compression and decompression functions. This results in a massive speed up of SZ3's Python API.

* Integrated previous changes to pysz in the sz3.3_develop branch.
@ayzk ayzk marked this pull request as ready for review August 6, 2025 14:20
@ayzk ayzk merged commit 5d2fd26 into master Aug 6, 2025
4 checks passed
@ayzk ayzk deleted the sz3.3_develop branch August 8, 2025 20:39
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.

4 participants