You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use cuda::hash for sparse distance hashing - #2741
Reviewing files that changed from the base of the PR and between b2e82c1 and cfd9fa0.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Bug Fixes
Updated sparse-distance hashing for improved handling of large inputs.
Tests
Added coverage for inner-product and L1 distance calculations on large, sparse inputs, including cases with matching and non-matching indices.
The sparse COO SpMV probing scheme now uses CUDA’s MurmurHash3 hash. Two sparse-distance test cases cover inputs with 2²⁰ columns: one for InnerProduct and one for L1.
Changes: Sparse distance hashing
Layer / File(s)
Summary
Hash strategy and wide-input tests cpp/src/distance/detail/sparse/coo_spmv_strategies/hash_strategy.cuh, cpp/tests/distance/sparse_distance.cu
The probing scheme uses CUDA’s MurmurHash3 hash for value indices. InnerProduct and L1 tests add sparse inputs with 2²⁰ columns.
This swaps the hash implementation used by sparse distance computation for an equivalent one and adds wide-column test coverage. No actionable merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the sparse distance hash strategy now uses cuda::hash in place of cuco::murmurhash3_32. The raw summary confirms hash_strategy.cuh switches to cuda::hash with murmurha…
Description check
The description states the replacement of cuco::murmurhash3_32 with cuda::hash in the sparse distance hash strategy and the new sparse InnerProduct and L1 test cases. Both match the raw summary and ob…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the sparse distance hash strategy now uses cuda::hash in place of cuco::murmurhash3_32. The raw summary confirms hash_strategy.cuh switches to cuda::hash with murmurhash3_32, and the objectives state the same replacement.
Full details: Description check
Explanation
The description states the replacement of cuco::murmurhash3_32 with cuda::hash in the sparse distance hash strategy and the new sparse InnerProduct and L1 test cases. Both match the raw summary and objectives.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between fda7906 and 52cc80f.
Files selected for processing: 1
cpp/tests/distance/sparse_distance.cu
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR replaces
cuco::murmurhash3_32withcuda::hashin the sparse distance hash strategy, preserving the existing algorithm and seed.Adds sparse InnerProduct and L1 cases that exercise the hash strategy, including reverse lookups.