Repository navigation
Unify reduce and rfa policy - #9639
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. |
| typename KernelSource = DeviceReduceKernelSource< | ||
| PolicySelector, |
There was a problem hiding this comment.
Comment: The kernel source will make this really difficult for the dispatch refactor because we already need the policy selector here
There was a problem hiding this comment.
We also needed it here in the old version
9c09f8d to
f29f8ce
Compare
|
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 (10)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (8)
📝 WalkthroughSummary by CodeRabbit
WalkthroughDeterministic reduce policy selection now flows through ChangesDeterministic reduce policy unification
Possibly related PRs
Suggested reviewers: Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (3)
cub/benchmarks/bench/reduce/deterministic.cu (1)
23-25: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winsuggestion: Line 23 should use
constexpr auto p; this selector isconstexprand the policy is built entirely from compile-time tuning constants. As per coding guidelines, “All variables that can be evaluated at compile time must be declaredconstexpr.”Source: Coding guidelines
cub/test/catch2_test_device_reduce_deterministic.cu (1)
30-32: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winsuggestion: Line 30 should use
constexpr auto p; the policy is compile-time-evaluable inside aconstexprselector. As per coding guidelines, “All variables that can be evaluated at compile time must be declaredconstexpr.”Source: Coding guidelines
cub/test/catch2_test_device_reduce_env.cu (1)
123-123: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winsuggestion: Declare these
envlocals asconst auto; none of them are modified after construction. As per coding guidelines, “All variables that are not modified must be declaredconst.”Also applies to: 138-139, 153-154, 169-170
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: cccbfee2-bb4e-4da0-9776-1f32ea6d60d6
📒 Files selected for processing (9)
cub/benchmarks/bench/reduce/deterministic.cucub/cub/device/device_reduce.cuhcub/cub/device/dispatch/dispatch_reduce.cuhcub/cub/device/dispatch/dispatch_reduce_deterministic.cuhcub/cub/device/dispatch/kernels/kernel_reduce_deterministic.cuhcub/cub/device/dispatch/tuning/tuning_reduce.cuhcub/cub/device/dispatch/tuning/tuning_reduce_deterministic.cuhcub/test/catch2_test_device_reduce_deterministic.cucub/test/catch2_test_device_reduce_env.cu
💤 Files with no reviewable changes (1)
- cub/cub/device/dispatch/tuning/tuning_reduce_deterministic.cuh
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: a41f3515-523f-4533-b86d-18311115cb05
📒 Files selected for processing (1)
c/parallel/src/reduce.cu
2b4a03f to
c223c9f
Compare
🥳 CI Workflow Results🟩 Finished in 2h 37m: Pass: 100%/291 | Total: 12d 16h | Max: 2h 36m | Hits: 17%/1152192See results here. |
The RFA path in CUB's reduction is very similar to the normal two-phase path. We could potentially even try to unify it, but that may be more controversial. In any case, the tuning values for the ordinary reduction make equally sense for the RFA reduction (it just uses less of the values), so this PR proposes to just reuse the same tuning policy for RFA than for the ordinary reduction.
cub.bench.reduce.deterministic.baseon SM75:100