Repository navigation
Use CUB bulk for row hashing - #22632
Conversation
📝 WalkthroughWalkthroughThree hash implementations switched from ChangesHash computation refactoring
Benchmark: variable column generation
🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
…shing # Conflicts: # cpp/src/hash/murmurhash3_x86_32.cu # cpp/src/hash/xxhash_32.cu # cpp/src/hash/xxhash_64.cu
There was a problem hiding this comment.
🧹 Nitpick comments (1)
cpp/benchmarks/hashing/hash.cpp (1)
104-104: ⚡ Quick winConsider adding baseline and extra-wide
num_colspoints.
{2, 64}captures mid/wide behavior, but adding1(narrow baseline) and256(stress width) would improve comparability and scaling visibility for this benchmark family.♻️ Proposed tweak
- .add_int64_axis("num_cols", {2, 64}) + .add_int64_axis("num_cols", {1, 2, 64, 256})🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cpp/benchmarks/hashing/hash.cpp` at line 104, Update the benchmark axis definition for num_cols to include baseline and stress points by changing the .add_int64_axis("num_cols", {2, 64}) call to include 1 and 256 (e.g., {1, 2, 64, 256}) so the benchmark captures narrow baseline and extra-wide stress cases for better comparability and scaling; modify the single expression invoking .add_int64_axis("num_cols", ...) accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@cpp/benchmarks/hashing/hash.cpp`:
- Line 104: Update the benchmark axis definition for num_cols to include
baseline and stress points by changing the .add_int64_axis("num_cols", {2, 64})
call to include 1 and 256 (e.g., {1, 2, 64, 256}) so the benchmark captures
narrow baseline and extra-wide stress cases for better comparability and
scaling; modify the single expression invoking .add_int64_axis("num_cols", ...)
accordingly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 05c6f5ca-7c7a-4fd8-84e2-9311cc4d8fe9
📒 Files selected for processing (1)
cpp/benchmarks/hashing/hash.cpp
|
IMO the PR description is too large. The testing section is not needed and benchmark results should be in a separate comment. |
Agreed, partly -- I was struggling to get my agent to include the right benchmark content (I had several forms of benchmarks, not all of which were useful). While focused on that, I overlooked the tests in the description. Normally I delete the testing section when an agent adds it, it's typically not very valuable. For the benchmark, I was unsure. For large benchmark tables I always use a separate comment. This felt small enough to include inline. Per your request, I will split the benchmark to a comment below. |
BenchmarkThe original CCCL reproducer in NVIDIA/cccl#9070 uses a synthetic wide row-hash functor. Rechecked against unpatched CCCL
The slowdown appears when the row functor is wide enough. For one column, there is effectively no difference. The updated cuDF Command: ./cpp/build/latest/benchmarks/HASHING_NVBENCH \
--benchmark hashing \
--axis num_rows=1048576 \
--axis num_cols=[2,64] \
--axis nulls=0 \
--axis hash_name=murmurhash3_x86_32 \
--min-samples 5 \
--min-time 0.05 \
--timeout 20 \
--devices 0
|
|
/merge |
Description
Replaces
thrust::tabulatewithcub::DeviceFor::Bulkin the row-hashing implementations:This avoids a known slow path in CCCL's CUDA
thrust::tabulateimplementation for row-hashing-style functors. See benchmarks below. Also see NVIDIA/cccl#9070 and NVIDIA/cccl#9071.The hashing logic and row-hasher preprocessing are unchanged; only the launch mechanism is changed.
This also adds a
num_colsaxis toHASHING_NVBENCHso the benchmark can cover wider tables.Checklist