Repository navigation
Use the new tuning API internally for detail::reduce[_nd]::dispatch[_nd] - #8826
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 4781524 |
This comment has been minimized.
This comment has been minimized.
4781524 to
57eeeb9
Compare
This comment has been minimized.
This comment has been minimized.
1068407 to
b47503a
Compare
This comment has been minimized.
This comment has been minimized.
b47503a to
b1b8672
Compare
This comment has been minimized.
This comment has been minimized.
| # if _CCCL_CUDA_COMPILER(NVCC, >=, 12, 1) | ||
| // some rare combinations, like nvcc 12.0 + clang-14 in C++20, or nvcc 12.0 + GCC12 fail with: | ||
| // pod_tuple.h(130): error: Internal Compiler Error (codegen): "internal error during structure layout!" | ||
| // if we pass more than two policy selectors |
There was a problem hiding this comment.
The per-PR CI only found this for nvcc 12.0 and not for nvcc 12.9. It could happen for some versions in-between, but I want to not disable too many runs and will let the nightly CI catch this.
| , | ||
| policy_selector<T>{} | ||
| #endif | ||
| cuda::execution::tune(policy_selector<T>{}) |
There was a problem hiding this comment.
Important: now that this benchmark calls the public DeviceReduce::Reduce API, the accumulator type may differ from T because cuda::std::plus might promote to a larger type, but the tuning selector still passes T as the template argument for AccumT, so the selected policy may be scaled for the input type and not the actual deduced accumulator type
There was a problem hiding this comment.
Right. I see I missed the SASS checks for this PR that would have revealed that issue.
On a different note: I discussed this with @gevtushenko and we agreed to change the meaning of the benchmark to align it better with the behavior of the public API. See also #6576. Maybe I should file this as a different PR first, so we can measure the impact and have a dedicated commit to point QA to where we expect a change in performance and they have to readjust the baseline for performance regression monitoring.
There was a problem hiding this comment.
And I fixed the accumulator type passed here! Sorry, I missed that initially. Well spotted!
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0778e92 to
631cff5
Compare
This comment has been minimized.
This comment has been minimized.
2c402f6 to
a7bbfe1
Compare
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Nader Al Awar <[email protected]>
Co-authored-by: Nader Al Awar <[email protected]>
Co-authored-by: Nader Al Awar <[email protected]>
Co-authored-by: Nader Al Awar <[email protected]>
1bfee02 to
0505ec5
Compare
🥳 CI Workflow Results🟩 Finished in 2h 33m: Pass: 100%/283 | Total: 11d 13h | Max: 2h 32m | Hits: 19%/948761See results here. |
DeviceReducehelpers #8851cub.bench.reduce.sum.baseon SM75;100cub.bench.reduce.nondeterministic.baseon SM75;100cub.bench.reduce.deterministic.baseon SM75;86;90cub.bench.reduce.arg_extrema.baseon SM75;86;90(diffed with ArgMin/Max fixes and improvements #8897)Fixes: #7948
Fixes: #7951
Fixes: #7960
Fixes: #7957