Commit 48100f9
committed
Drops `colAllocConstraint == "same_column"` from
ShimDMAAllocator::allocNewDmaChannel. Default for every caller (no
override exists), so the effect is universal. Shim DMA columns are now
chosen by first-fit + round-robin overflow when channels exhaust;
compute-shim column adjacency is delegated to mlir-aie's flow-aware
placer (#3055).
Also drops the `colAllocConstraint` parameter from the public API entry
in AIRToAIESchedulingUtils.h since it now has no values that change
behavior.
Acknowledged behavioral change: workloads that depended on shim DMAs
landing in the same column as the compute-side `(col, row)` may see
worse routing until follow-up Stage C #7 consolidates the shim path
with ShimTileAllocator's unconstrained `(?, ?)` approach.
Tests updated to reflect first-fit shim packing:
- good_shim_packet_flow_npu_4col.mlir: 4 packet flows now share shim
col 0 via packet switching (was 4 cols).
- async_gemm_w_pingpong_to_locks_npu.mlir: both compute cols' shim
traffic packs into shim col 0 (DMA:0 + DMA:1).
- air_shimcpy_to_npu.mlir (subtest 12): 4 mem-to-shim S2MM flows fill
shim cols 0+1 via channel overflow (was 4 cols).
- air_shimcpy_to_npu.mlir (subtest 14): MM2S allocation pattern reflows
to (col 0 ch 0, col 0 ch 1, col 1 ch 0, col 1 ch 1) instead of
same-column striping.
Tests: 384/384 check-air-mlir (2 pre-existing AIRToROCDL failures
unrelated). clang-format-17 clean.
1 parent 7e32ff5 commit 48100f9
5 files changed
Lines changed: 16 additions & 25 deletions
File tree
- mlir
- include/air/Conversion
- lib/Conversion
- test/Conversion/AIRToAIE
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
| 200 | + | |
202 | 201 | | |
203 | 202 | | |
204 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
1004 | 1005 | | |
1005 | 1006 | | |
1006 | 1007 | | |
| |||
1027 | 1028 | | |
1028 | 1029 | | |
1029 | 1030 | | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | 1031 | | |
1037 | 1032 | | |
1038 | 1033 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
785 | | - | |
786 | | - | |
787 | 785 | | |
788 | 786 | | |
789 | 787 | | |
| |||
841 | 839 | | |
842 | 840 | | |
843 | 841 | | |
844 | | - | |
845 | | - | |
846 | | - | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
847 | 845 | | |
848 | 846 | | |
849 | 847 | | |
| |||
1082 | 1080 | | |
1083 | 1081 | | |
1084 | 1082 | | |
1085 | | - | |
1086 | | - | |
| 1083 | + | |
| 1084 | + | |
1087 | 1085 | | |
1088 | 1086 | | |
1089 | | - | |
1090 | | - | |
| 1087 | + | |
| 1088 | + | |
1091 | 1089 | | |
1092 | 1090 | | |
1093 | 1091 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments