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

Fix a size overflow bug in hash groupby #16053

Merged

Conversation

PointKernel
Copy link
Member

Description

This PR fixes a size overflow bug discovered by @matal-nvidia. It converts the groupby problem size to int64_t so it won't overflow if larger than INT_MAX / 2 with 50% hash table occupancy.

Unit tests for this scenario will saturate device memory and take longer than necessary, making them likely not worth adding.

Checklist

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

@PointKernel PointKernel added bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change labels Jun 17, 2024
@PointKernel PointKernel requested a review from a team as a code owner June 17, 2024 22:32
@PointKernel PointKernel self-assigned this Jun 17, 2024
@PointKernel PointKernel requested a review from a team as a code owner June 17, 2024 23:53
@github-actions github-actions bot added the Python Affects Python cuDF API. label Jun 17, 2024
@PointKernel PointKernel requested a review from a team as a code owner June 18, 2024 17:04
@github-actions github-actions bot added the Java Affects Java cuDF API. label Jun 18, 2024
@PointKernel
Copy link
Member Author

@ttnghia Thanks for helping fix the Java test!

@PointKernel
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit 231cb71 into rapidsai:branch-24.08 Jun 18, 2024
73 checks passed
@PointKernel PointKernel deleted the fix-groupby-size-overflow branch June 18, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Java Affects Java cuDF API. libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants