Repository navigation
Do not override accumulator type in reduce benchmarks - #8884
Merged
bernhardmgruber merged 3 commits intoMay 11, 2026
Merged
Conversation
7 tasks done
This comment has been minimized.
This comment has been minimized.
miscco
approved these changes
May 11, 2026
davebayer
approved these changes
May 11, 2026
bernhardmgruber
enabled auto-merge (squash)
May 11, 2026 07:39
Contributor
🥳 CI Workflow Results🟩 Finished in 1h 33m: Pass: 100%/242 | Total: 3d 00h | Max: 1h 32m | Hits: 71%/216088See results here. |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CUB's benchmark hardcoded the value type as the accumulator type, which is what Thrust does, but not what a user would typically get at CUB's public API. Not only does this waste tuning effort, since the found tunings do not apply to how users use the API, it also inhibits evolution like using CUB's public API in benchmarks. This PR fixes this, but it changes the performance reported by the benchmarks since they now cover a different workload.
Here is the performance impact caused by this change. Note that a regression does not mean any CUB algorithm got slower. We are just changing the workload of the benchmark. That means a comparison is actually meaningless. However, people and QA may notice a change in their results over time, so I provide the numbers here which they should expect:
cub.bench.reduce.sum.basecub.bench.reduce.deterministic.basecub.bench.reduce.nondeterministic.basecub.bench.transform_reduce.sum.baseFixes: #6576