Commit 1bc65d2
committed
fix(tiling): emit cumulative numTiles for L1 when only one tiling schedule
When there is a single tiling schedule (len == 1), L1 is the outermost
tile loop and is called exactly once. The prior code always emitted
per-tile numTiles {0,1,...,N} at L1, so only tile 0 ran — causing
failures when a node tiles into multiple L1 slices with no L2 spatial loop
wrapping the L1 closure.
Switch to cumulative {0, total} when len(tilingSchedules) == 1 so the
single call walks all tiles. Keep per-tile for len > 1 (L2 spatial loop
drives L1 once per step).
Also add profilingNodes field to CodeGenVerbosity and honour it in
PULPClusterTiling / PULPL3Tiling to restrict cycle-counter instrumentation
to a named subset of nodes.1 parent 3166af7 commit 1bc65d2
4 files changed
Lines changed: 18 additions & 5 deletions
File tree
- Deeploy
- Targets/PULPOpen/CodeTransformationPasses
- TilingExtension/CodeTransformationPasses
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
| 83 | + | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
| |||
0 commit comments