Commit 769aca9
Refactor temporal reuse: fold fill/drain into regular actions with post-hoc correction
Replace the complex in-line temporal reuse detection (parent-named
BuffetStats attributes, halo factor, bypass-zone walking) with a
simpler two-phase approach: analyze_storage folds fill/drain into
regular read/write actions, then _apply_temporal_reuse_corrections
walks per-tensor mappings to find contiguous irrelevant temporal
loops and divides out inflated stats as a post-processing step.
- Remove ~200 lines from symbolic.py (parent attrs, halo logic,
_has_temporal_reuse, _compute_overlap_fallback, partial_overlap_info)
- Add _apply_temporal_reuse_corrections, _get_parent_buffet, and
_compute_buffet_tile_shapes to sparse_adjustment.py
- Simplify memory.py and run_model.py action counting
- Improve energy.py KeyError message for missing actions
- Update temporal reuse test to use structural reuse mapping
- Add spatial fanout temporal reuse test and regression comparison tool
- Update sparseloop reproduction notebook outputs and regression reference
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1e958e0 commit 769aca9
18 files changed
Lines changed: 9768 additions & 2601 deletions
File tree
- accelforge/model
- _looptree
- latency
- reuse/symbolic
- notebooks/sparseloop_reproduction
- tests
- input_files
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
76 | | - | |
| 74 | + | |
| 75 | + | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 79 | + | |
85 | 80 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 81 | + | |
90 | 82 | | |
91 | 83 | | |
92 | 84 | | |
93 | 85 | | |
94 | 86 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 87 | + | |
100 | 88 | | |
101 | 89 | | |
102 | 90 | | |
| |||
0 commit comments