Repository navigation
Allow public tuning of cub::DeviceSegmentedRadixSort - #9685
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. |
📝 WalkthroughSummary by CodeRabbit
WalkthroughIntroduces ChangesSegmentedRadixSortPolicy tuning API
Assessment against linked issues
Suggested reviewers: Comment |
| RadixSortDownsweepPolicy segmented; //!< Policy for the primary radix sort pass on each segment | ||
| RadixSortDownsweepPolicy alt_segmented; //!< Policy for the alternate radix sort pass on each segment |
There was a problem hiding this comment.
Should we give those members different names?
There was a problem hiding this comment.
I would say either upsweep_policy / downsweep_policy or the same with segmented_
There was a problem hiding this comment.
That's the fun thing, RadixSortDownsweepPolicy segmented is used to parameterize an upsweep, scan and downsweep agent in the kernel.
There was a problem hiding this comment.
I renamed them regular_pass and alternate_pass now.
| RadixSortDownsweepPolicy segmented; //!< Policy for the primary radix sort pass on each segment | ||
| RadixSortDownsweepPolicy alt_segmented; //!< Policy for the alternate radix sort pass on each segment |
There was a problem hiding this comment.
I would say either upsweep_policy / downsweep_policy or the same with segmented_
This comment has been minimized.
This comment has been minimized.
168bf52 to
635cf8e
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
cub/cub/device/dispatch/tuning/tuning_segmented_radix_sort.cuh (1)
298-308: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winsuggestion: qualify
cuda::compute_capabilityas::cuda::compute_capabilityhere for consistency with every other use in this file (lines 76, 103, 130, 157, 184, 213, 240 all use the leading::).diff
- [[nodiscard]] _CCCL_HOST_DEVICE_API constexpr auto operator()(cuda::compute_capability cc) const + [[nodiscard]] _CCCL_HOST_DEVICE_API constexpr auto operator()(::cuda::compute_capability cc) const -> SegmentedRadixSortPolicyAs per coding guidelines: "apply the required global qualification rules for free-function calls, including
::cuda::...qualification where mandated by the subproject."Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 7a611307-9f25-4798-a455-7141459c0c7d
📒 Files selected for processing (6)
cub/cub/device/device_segmented_radix_sort.cuhcub/cub/device/dispatch/dispatch_segmented_radix_sort.cuhcub/cub/device/dispatch/kernels/kernel_segmented_radix_sort.cuhcub/cub/device/dispatch/tuning/tuning_segmented_radix_sort.cuhcub/test/catch2_test_device_segmented_radix_sort_env.cucub/test/catch2_test_device_segmented_radix_sort_env_api.cu
✅ Files skipped from review due to trivial changes (1)
- cub/cub/device/device_segmented_radix_sort.cuh
🚧 Files skipped from review as they are similar to previous changes (4)
- cub/cub/device/dispatch/kernels/kernel_segmented_radix_sort.cuh
- cub/test/catch2_test_device_segmented_radix_sort_env.cu
- cub/test/catch2_test_device_segmented_radix_sort_env_api.cu
- cub/cub/device/dispatch/dispatch_segmented_radix_sort.cuh
🥳 CI Workflow Results🟩 Finished in 2h 15m: Pass: 100%/287 | Total: 7d 21h | Max: 1h 11m | Hits: 39%/523239See results here. |
Fixes: #8579