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

Make snappy decompress check more efficient #9995

Merged
merged 11 commits into from
Mar 21, 2022

Conversation

cheinger
Copy link
Contributor

@cheinger cheinger commented Jan 7, 2022

  • Add status checking of decompressed snappy parquet pages when using cuDF snappy decompression.
  • Improve the performance of checking decompressed snappy parquet pages when using nvCOMP snappy decompression by reducing the number of synchronizes.

@GPUtester
Copy link
Collaborator

Can one of the admins verify this patch?

@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Jan 7, 2022
@devavret
Copy link
Contributor

devavret commented Jan 7, 2022

ok to test

Copy link
Contributor

@devavret devavret left a comment

Choose a reason for hiding this comment

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

I realized we allocate and pass comp_stat to snappy_decompress() but don't use it. We should use it for checking instead.

cpp/src/io/parquet/reader_impl.cu Outdated Show resolved Hide resolved
@devavret
Copy link
Contributor

devavret commented Jan 7, 2022

@cheinger Also, please don't force-push. It decouples the review comments from the code and makes it hard to see what changed in the most recent commit

@devavret devavret added 4 - Needs cuIO Reviewer cuIO cuIO issue non-breaking Non-breaking change Performance Performance related issue labels Jan 10, 2022
cpp/src/io/comp/unsnap.cu Outdated Show resolved Hide resolved
cpp/src/io/orc/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/orc/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/orc/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/orc/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/parquet/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/parquet/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/parquet/reader_impl.cu Outdated Show resolved Hide resolved
@devavret devavret marked this pull request as ready for review January 10, 2022 11:42
@devavret devavret requested a review from a team as a code owner January 10, 2022 11:42
@devavret devavret requested review from harrism and vuule January 10, 2022 11:42
@devavret devavret added the improvement Improvement / enhancement to an existing function label Jan 10, 2022
@devavret
Copy link
Contributor

@cheinger is this ready for another review? Click the re-request review button next to my name in reviewers when ready.

@cheinger cheinger requested a review from devavret January 19, 2022 17:20
@vyasr
Copy link
Contributor

vyasr commented Jan 20, 2022

This should probably be retargeted to 22.04 at this point.

@devavret devavret changed the base branch from branch-22.02 to branch-22.04 January 21, 2022 12:13
Copy link
Contributor

@devavret devavret left a comment

Choose a reason for hiding this comment

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

Nearly there.

cpp/src/io/parquet/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/parquet/reader_impl.cu Outdated Show resolved Hide resolved
@vuule vuule added 0 - Waiting on Author Waiting for author to respond to review and removed 4 - Needs cuIO Reviewer labels Jan 26, 2022
@cheinger cheinger force-pushed the branch-22.02 branch 2 times, most recently from da4c811 to 17d1219 Compare March 9, 2022 05:15
@jbrennan333
Copy link
Contributor

@cheinger what is the status of this? Looks like it might need to be merged up to head of branch-22.04.
Would be nice to get this in for branch-22.04 if that is still possible.

@cheinger
Copy link
Contributor Author

@jbrennan333 Hey Jim - yeah I would like to get this in as well, however I keep running into issues that don't seem to be related to these changes? 🤔 I've rebased several times but always run into a different issue. Maybe you could provide some guidance? Thanks

@jbrennan333
Copy link
Contributor

I know there was a bug earlier this week that was impacting pre-commit tests which was fixed. This happens sometimes. It's a big project with a lot of changes going in - once you commit, you should keep an eye on those pre-commit checks and follow up quickly. I think this one has missed the opportunity to get into 22.04 as we are already in burn-down. Would be great to get it in early in 22.06.

@cheinger
Copy link
Contributor Author

rerun tests

2 similar comments
@devavret
Copy link
Contributor

rerun tests

@cheinger
Copy link
Contributor Author

rerun tests

@codecov
Copy link

codecov bot commented Mar 21, 2022

Codecov Report

Merging #9995 (f331301) into branch-22.04 (4596244) will decrease coverage by 0.00%.
The diff coverage is 93.70%.

@@               Coverage Diff                @@
##           branch-22.04    #9995      +/-   ##
================================================
- Coverage         86.13%   86.13%   -0.01%     
================================================
  Files               139      139              
  Lines             22438    22435       -3     
================================================
- Hits              19328    19324       -4     
- Misses             3110     3111       +1     
Impacted Files Coverage Δ
python/cudf/cudf/core/dataframe.py 93.57% <ø> (ø)
python/cudf/cudf/core/series.py 95.16% <ø> (ø)
python/dask_cudf/dask_cudf/tests/test_accessor.py 98.41% <ø> (ø)
python/cudf/cudf/core/column/decimal.py 91.30% <73.68%> (-1.01%) ⬇️
python/cudf/cudf/core/column/categorical.py 89.63% <84.61%> (-0.29%) ⬇️
python/cudf/cudf/core/column/string.py 88.91% <94.44%> (+0.64%) ⬆️
python/cudf/cudf/core/column/numerical.py 95.33% <95.83%> (+0.35%) ⬆️
python/cudf/cudf/api/types.py 89.79% <100.00%> (ø)
python/cudf/cudf/core/column/column.py 89.27% <100.00%> (+0.10%) ⬆️
python/cudf/cudf/core/column/datetime.py 88.55% <100.00%> (-0.52%) ⬇️
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 621d26f...f331301. Read the comment docs.

@PointKernel
Copy link
Member

@gpucibot merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - Waiting on Author Waiting for author to respond to review cuIO cuIO issue improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change Performance Performance related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants