Repository navigation
Implement the new tuning API for deterministic (rfa) reduce dispatch - #7346
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. |
797e34a to
1962a21
Compare
|
/ok to test 1962a21 |
This comment has been minimized.
This comment has been minimized.
1962a21 to
ffd700d
Compare
972031c to
adcb7fd
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
e57dad5 to
8d18948
Compare
This comment has been minimized.
This comment has been minimized.
8d18948 to
ca43893
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
fbusato
left a comment
There was a problem hiding this comment.
a few minor comments. Looks good.
It's a bit hard to review because some files have been moved and it looks new.
|
|
||
| using ftype = typename AccumT::ftype; | ||
| constexpr int bin_length = AccumT::max_index + AccumT::max_fold; | ||
| const int tid = block_threads * blockIdx.x + threadIdx.x; |
There was a problem hiding this comment.
do we need to handle large input?
There was a problem hiding this comment.
I did not change any code in this file, just moved it from kernel_reduce.cuh. So I don't know. I guess it's fine.
| // Output result | ||
| if (threadIdx.x == 0) | ||
| { | ||
| detail::uninitialized_copy_single(d_out + blockIdx.x, block_aggregate); |
There was a problem hiding this comment.
| detail::uninitialized_copy_single(d_out + blockIdx.x, block_aggregate); | |
| cub::detail::uninitialized_copy_single(d_out + blockIdx.x, block_aggregate); |
| if (accum_t == type_t::float32) | ||
| { | ||
| // ipt_13.tpb_224 1.107188 1.009709 1.097114 1.316820 | ||
| const auto scaled = scale_mem_bound(224, 13, accum_size); |
There was a problem hiding this comment.
missing full qualification?
There was a problem hiding this comment.
We do not require full qualification outside libcu++ AFAIK
ca43893 to
d970164
Compare
🥳 CI Workflow Results🟩 Finished in 3h 50m: Pass: 100%/249 | Total: 8d 22h | Max: 3h 50m | Hits: 72%/154068See results here. |
| if (accum_t == type_t::float32) | ||
| { | ||
| // ipt_13.tpb_224 1.107188 1.009709 1.097114 1.316820 | ||
| const auto scaled = scale_mem_bound(224, 13, accum_size); |
| } | ||
|
|
||
| const auto scaled = scale_mem_bound(256, 20, accum_size); | ||
| return {{scaled.block_threads, scaled.items_per_thread, BLOCK_REDUCE_RAKING}, |
There was a problem hiding this comment.
Just to be sure, are they always the same?
There was a problem hiding this comment.
Currently yes, but we could change this. It comes from the old policy_hub, where we had using SingleTilePolicy = ReducePolicy; everywhere.

DeviceSegmentedReduce#7334cub.bench.reduce.deterministic.baseon SM75/SM86/SM90