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 the default erase sentinel bug in the base open addressing ctor #428

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

PointKernel
Copy link
Member

This PR fixes a bug in the OA base class where the erased key sentinel value should have been initialized by the empty key sentinel if not specified.

Tests are updated to exercise this issue.

Needed by rapidsai/cudf#14813

@PointKernel PointKernel added type: bug Something isn't working helps: rapids Helps or needed by RAPIDS topic: static_set Issue related to the static_set labels Jan 23, 2024
@@ -178,14 +178,15 @@ class open_addressing_impl {
cuda_stream_ref stream)
: empty_key_sentinel_{empty_key_sentinel},
empty_slot_sentinel_{empty_slot_sentinel},
erased_key_sentinel_{empty_key_sentinel},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch!

@PointKernel PointKernel merged commit fabd885 into NVIDIA:dev Jan 23, 2024
15 checks passed
@PointKernel PointKernel deleted the fix-default-init-issue branch January 23, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helps: rapids Helps or needed by RAPIDS topic: static_set Issue related to the static_set type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants