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 memory alignment issues in hash computation #338

Merged
merged 2 commits into from
Jul 29, 2023

Conversation

sleeepyjack
Copy link
Collaborator

@sleeepyjack sleeepyjack commented Jul 28, 2023

When hashing large keys, e.g., strings, we traverse the input key iteratively in chunks of 4/8 bytes. The current implementation of the load_chunk function falsely assumes that the start of the key is always aligned to the chunk size, which is not always the case (see discussion).

Additionally, this PR fixes some uncaught [-Wmaybe-uninitialized] warnings when compiling the unit tests.

@sleeepyjack sleeepyjack added the type: bug Something isn't working label Jul 28, 2023
@sleeepyjack sleeepyjack requested a review from PointKernel July 28, 2023 21:18
@sleeepyjack sleeepyjack changed the title Fix memory alignment issues in hash function computation Fix memory alignment issues in hash computation Jul 28, 2023
@sleeepyjack sleeepyjack merged commit ff16201 into NVIDIA:dev Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants