Commit 12aa00d
Use budget-based tile sizing for tiled broadcast
Replace the hardcoded 64×64 tile sizes with a greedy budget-based
approach (4096 elements) that skips singleton dimensions and caps each
tile dim at the array size. This fixes tiled broadcast for arrays with
leading singleton or small dimensions (e.g. (1, 1024), (4, 1024)).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ad2c10f commit 12aa00d
2 files changed
Lines changed: 44 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
353 | 373 | | |
354 | 374 | | |
355 | 375 | | |
356 | | - | |
| 376 | + | |
357 | 377 | | |
358 | 378 | | |
359 | 379 | | |
360 | | - | |
| 380 | + | |
361 | 381 | | |
362 | 382 | | |
363 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
930 | 951 | | |
0 commit comments