Repository navigation
Commit b3a0d97
committed
Generalize FlyDSL decode TopK tiered kernel to all K and expose workspace API. Make the tiered persistent radix-select the sole decode TopK path for every supported K (256/512/1024/2048) by lifting top_k to a compile-time parameter, and drop the single-CTA fallback. Callers now manage scratch through flydsl_top_k_per_row_decode_workspace_size and an optional workspace= argument, with a batch-aware tier config and a deadlock guard that clamps cooperating workgroups (or forces the barrier-free short tier) to keep the non-cooperative row barrier safe.
1 parent 5152d4d commit b3a0d97
8 files changed
Lines changed: 1085 additions & 730 deletions
File tree
- aiter/ops/flydsl
- kernels
- op_tests
- flydsl_tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Large diffs are not rendered by default.
0 commit comments