Skip to content

Add C++ tests for different compression implementations#18690

Merged
rapids-bot[bot] merged 21 commits intorapidsai:branch-25.06from
vuule:test-comp-impls
May 8, 2025
Merged

Add C++ tests for different compression implementations#18690
rapids-bot[bot] merged 21 commits intorapidsai:branch-25.06from
vuule:test-comp-impls

Conversation

@vuule
Copy link
Contributor

@vuule vuule commented May 6, 2025

Description

Add tests that are parameterized on the compression codec and the implementation (nvCOMP, internal kernel, host) to ensure all available implementations are tested for all supported codecs.

More tests will be added as issues with non-nvCOMP implementations are fixed.

Also: tests uncovered another bug in the Parquet writer; fixed it in this PR.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot
Copy link

copy-pr-bot bot commented May 6, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label May 6, 2025
@vuule vuule added tests Unit testing for project improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels May 6, 2025
util::round_up_unsafe(page_g.max_hdr_size + page_g.max_data_size, page_align);
if (not comp_page_sizes.empty()) {
comp_page_offset += page_g.max_hdr_size + comp_page_sizes[ck_g.first_page];
page_g.comp_data_size = comp_page_sizes[ck_g.first_page + num_pages];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

missed this one in #18644, because the test did not cover dictionary pages.

Comment on lines +1391 to +1395
// Generate compressible data
auto int_sequence =
cudf::detail::make_counting_transform_iterator(0, [](auto i) { return i % 100; });
auto float_sequence =
cudf::detail::make_counting_transform_iterator(0, [](auto i) { return i / 32; });
Copy link
Contributor Author

@vuule vuule May 6, 2025

Choose a reason for hiding this comment

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

using this instead of create_compressible_fixed_table to ensure dict encoding is used

@vuule vuule marked this pull request as ready for review May 7, 2025 02:52
@vuule vuule requested a review from a team as a code owner May 7, 2025 02:52
@vuule vuule requested review from davidwendt and mythrocks May 7, 2025 02:52
@vuule vuule moved this to Burndown in libcudf May 7, 2025
@vuule vuule added this to libcudf May 7, 2025
Copy link
Contributor

@mythrocks mythrocks left a comment

Choose a reason for hiding this comment

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

Only a couple of clarifying questions. Almost done.

@vuule vuule requested a review from mythrocks May 7, 2025 20:12
Comment on lines +39 to +42
tmp_env_var(tmp_env_var const&) = delete;
tmp_env_var& operator=(tmp_env_var const&) = delete;
tmp_env_var(tmp_env_var&&) = delete;
tmp_env_var& operator=(tmp_env_var&&) = delete;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted these to remove the sharp edges, like having a vector of tmp_env_var that gets resized.
If we need to copy or move these eventually, we can implement these properly.

@vuule vuule changed the title Add tests for different compression implementations Add C++ tests for different compression implementations May 7, 2025
@vuule vuule added the 5 - Ready to Merge Testing and reviews complete, ready to merge label May 7, 2025
@vuule
Copy link
Contributor Author

vuule commented May 8, 2025

/merge

@rapids-bot rapids-bot bot merged commit 00cd766 into rapidsai:branch-25.06 May 8, 2025
124 checks passed
@vuule vuule deleted the test-comp-impls branch May 8, 2025 03:10
@vuule vuule moved this from Burndown to Landed in libcudf May 8, 2025
@vuule
Copy link
Contributor Author

vuule commented May 13, 2025

issue #18445

@GregoryKimball GregoryKimball removed this from libcudf Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to Merge Testing and reviews complete, ready to merge improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change tests Unit testing for project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants