Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvCOMP GZIP integration #16770

Merged
merged 19 commits into from
Sep 11, 2024
Merged

Conversation

vuule
Copy link
Contributor

@vuule vuule commented Sep 7, 2024

Description

nvCOMP GZIP integration. Opt-in for now.

Checklist

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

@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Sep 7, 2024
@vuule
Copy link
Contributor Author

vuule commented Sep 9, 2024

Unit tests are passing when the integration is enabled. Keeping it disabled by default for now.

@vuule vuule added feature request New feature or request cuIO cuIO issue non-breaking Non-breaking change labels Sep 9, 2024
@vuule vuule self-assigned this Sep 9, 2024
@vuule vuule marked this pull request as ready for review September 10, 2024 02:13
@vuule vuule requested a review from a team as a code owner September 10, 2024 02:13
Copy link
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

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

Looks straightforward.

@@ -447,6 +454,7 @@ std::optional<std::string> is_decompression_disabled(compression_type compressio
size_t required_alignment(compression_type compression)
{
switch (compression) {
case compression_type::GZIP:
Copy link
Contributor Author

@vuule vuule Sep 10, 2024

Choose a reason for hiding this comment

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

nvCOMP omitted nvcompGzipRequiredAlignment, so I could not follow the pattern we use for other formats.
We can return the same value as deflate because it's the same compression format; the only difference is an additional header in GZIP.
The alternative would be to use a hard-coded number.

@@ -447,6 +454,7 @@ std::optional<std::string> is_decompression_disabled(compression_type compressio
size_t required_alignment(compression_type compression)
{
switch (compression) {
case compression_type::GZIP:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this require the same alignment as DEFLATE instead of its own alignment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#16770 (comment)
we posted at the same time :)

updated that comment to provide context

@vuule vuule added the 5 - Ready to Merge Testing and reviews complete, ready to merge label Sep 10, 2024
@vuule
Copy link
Contributor Author

vuule commented Sep 11, 2024

/merge

@rapids-bot rapids-bot bot merged commit 750adca into rapidsai:branch-24.10 Sep 11, 2024
101 checks passed
gerashegalov added a commit to gerashegalov/cudf that referenced this pull request Oct 2, 2024
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 cuIO cuIO issue feature request New feature or request libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants