Commit df6c1a4
committed
mapreduce: size the coalesced LTS kernel via launch_configuration
The coalesced-reduction launch used a hardcoded items = clamp(length(Rother),
1, 256), which can exceed the kernel's max work-group size on some devices and
fail the launch. Query launch_configuration(kernel) for the actual limit, like
the main partial_mapreduce_device path already does. Verified the coalesced
path (dim-1-kept reductions) stays correct across a range of sizes, including
large Rother.
Addresses PR_REVIEW.md additional observation (hardcoded coalesced items).1 parent e2ddd99 commit df6c1a4
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
| |||
0 commit comments