Repository navigation
Let scan tuning policy choose warpspeed or not - #8158
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. |
This comment has been minimized.
This comment has been minimized.
6b84735 to
175e58c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
39df475 to
289d74c
Compare
This comment has been minimized.
This comment has been minimized.
ea541e5 to
3aa7edc
Compare
This comment has been minimized.
This comment has been minimized.
3aa7edc to
5c6d621
Compare
|
I see SASS diffs for SM100 and SM120. Almost exclusively in the setup code around the SMEM allocator. More instructions are generated. |
miscco
left a comment
There was a problem hiding this comment.
I shudder from the complexity of all that tuning
| #if _CCCL_CUDACC_AT_LEAST(12, 8) | ||
| _CCCL_GRID_CONSTANT | ||
| _CCCL_GRID_CONSTANT | ||
| #endif // _CCCL_CUDACC_AT_LEAST(12, 8) |
There was a problem hiding this comment.
Are we sure this is still needed, I thought that _CCCL_GRID_CONSTANT is only used above 12.8
There was a problem hiding this comment.
The DeviceScanKernel entry point is also used for the old scan implementation, so yes, we still need that.
There was a problem hiding this comment.
Oh I meant whether we need the conditional compilation
| constexpr auto policy = get_warpspeed_policy<PolicySelector>(); | ||
| setup_scan_resources( | ||
| get_warpspeed_policy<PolicySelector>(), | ||
| policy, |
There was a problem hiding this comment.
This fixed the SASS regression. The tuning policy was computed at runtime. We should be careful in the future to always put a tuning policy into a constexpr variable before accessing it.
This comment has been minimized.
This comment has been minimized.
That looks like an invalid value passed |
This reverts commit f106cd4.
|
I can't reproduce it locally. Seems it's in the old scan implementation. |
8a365ab to
f497303
Compare
|
Found it. I selected the warpspeed tuning even on older architectures, which led to a division by zero in the host code. Fixed. |
🥳 CI Workflow Results🟩 Finished in 2h 28m: Pass: 100%/275 | Total: 6d 09h | Max: 1h 23m | Hits: 85%/177731See results here. |
NaderAlAwar
left a comment
There was a problem hiding this comment.
C and benchmark parts look good
The motivation for this change is that now users can pick the underlying implementation and enforce that choice, which leads to compilation errors if the chosen implementation is not viable (e.g. exceeds 48KiB SMEM, or exceeds registers, or the PTX ISO is too low).
This is also what we need for tuning. We want to enforce a certain scan implementation and fail to compile if the tuning framework selects parameters that are not viable.
cub.bench.scan.exclusive.sum.baseon SM75;80;86;90;100;120Fixes: #8028