Repository navigation
Reduce sort-based groupby helper build time - #23285
Conversation
|
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. |
|
/ok to test 5e46194 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe change extracts sorted groupby offset computation into reusable helpers, adds nested-key support, integrates the helpers into ChangesSorted groupby offset computation
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
cpp/src/groupby/sort/sort_helper.cu (1)
261-261: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueDeclare the device-lambda return type.
Use-> size_typehere to keep this device lambda aligned with the CUDA guideline.🤖 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/src/groupby/sort/sort_helper.cu` at line 261, Update the device lambda in the sort helper’s idx_data accessor to explicitly declare its return type as size_type using a trailing return type, while preserving its existing parameter and return expression.Source: Coding guidelines
🤖 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/src/groupby/sort/sort_helper.cu`:
- Line 261: Update the device lambda in the sort helper’s idx_data accessor to
explicitly declare its return type as size_type using a trailing return type,
while preserving its existing parameter and return expression.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: cd0a6f6b-74b7-4c50-8d2a-e7d2d30163f1
📒 Files selected for processing (4)
cpp/CMakeLists.txtcpp/src/groupby/sort/sort_helper.cucpp/src/groupby/sort/sort_helper_group_offsets.cuhcpp/src/groupby/sort/sort_helper_nested.cu
…nto reduce-sort-helper-build-time
|
/merge |
Description
Related to #21973
groupby/sort/sort_helper.cuwas the most expensive libcudf TU in a cold build. This PR reduces its build time by moving nested comparator instantiations into a separate TU and removing type-specific gather instantiations.It uses a two-stage group-offset implementation while keeping the radix-sort path unchanged.
The longest CUDA compile drops from 491s to 65s. The affected object size drops from 7.69 MB to 1.95 MB. Pre-sorted groupby benchmarks improve by 14–22% on B200, while nested-key performance is unchanged.
Checklist