Repository navigation
Swap small_segment and medium_segment in SegmentedSortPolicy - #9716
Conversation
Improves consistency with other policies
small_segment and medium_segment in SegmentedSortPolicy
|
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 (1)
📝 WalkthroughSummary by CodeRabbit
Walkthrough
ChangesSegmentedSortPolicy member reorder
Suggested reviewers: Comment |
This comment has been minimized.
This comment has been minimized.
Match the new member order (medium_segment before small_segment) in the segmented_sort_tuning test helper. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
♻️ Duplicate comments (1)
cub/test/catch2_test_device_segmented_sort_keys_env.cu (1)
481-488: 🎯 Functional Correctness | 🔴 Critical | ⚡ Quick wincritical: the two
SegmentedSortSubWarpMergeSortPolicyblocks (32-thread then 4-thread) are still in their original relative order here, but the struct field order is nowmedium_segmentbeforesmall_segment. Since this is positional aggregate init, the 32-thread block now binds tomedium_segmentand the 4-thread block tosmall_segment— the opposite of before the struct reorder. Either swap these two blocks to preserve prior semantics, or confirm this reassignment is intentional.This is the same concern raised in a prior review on this PR ("Critical: these need to be swapped after this change") and appears unresolved.
🐛 Proposed fix
cub::SegmentedSortSubWarpMergeSortPolicy{ - BlockThreads, 32, 1, cub::WARP_LOAD_DIRECT, cub::LOAD_DEFAULT, cub::WARP_STORE_DIRECT}, - cub::SegmentedSortSubWarpMergeSortPolicy{ BlockThreads, 4, 1, cub::WARP_LOAD_DIRECT, cub::LOAD_DEFAULT, cub::WARP_STORE_DIRECT}, + cub::SegmentedSortSubWarpMergeSortPolicy{ + BlockThreads, 32, 1, cub::WARP_LOAD_DIRECT, cub::LOAD_DEFAULT, cub::WARP_STORE_DIRECT}, 1000000};
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 3f4bb8fd-e6fa-4b94-9be8-f0e9cf42c5cf
📒 Files selected for processing (1)
cub/test/catch2_test_device_segmented_sort_keys_env.cu
This comment has been minimized.
This comment has been minimized.
NaderAlAwar
left a comment
There was a problem hiding this comment.
Suggestion: the same issue of swapped policies appears at catch2_test_device_segmented_sort_pairs_env.cu:746 if you want to fix it
Applied. Thx! |
This comment has been minimized.
This comment has been minimized.
🥳 CI Workflow Results🟩 Finished in 4h 33m: Pass: 100%/287 | Total: 12d 00h | Max: 2h 44m | Hits: 10%/1543260See results here. |
Improves consistency with other policies
Fixes part of: #9378