Commit 2265ab8
authored
Arm backend: Add U55 portable fallback ops (#20803)
Add missing portable CPU fallback kernels to the U55 selected-op runner.
U65 inherits the same portable op list, so the U65 portable runner gets
the same fallback coverage.
These ops are needed when the partitioner rejects parts of a graph for
Ethos-U delegation. The TOSA/Vela delegate segment can still compile
successfully, but the model load fails when a non-delegated CPU fallback
op is not registered in the portable runner.
Added U55/U65 fallback ops:
aten::avg_pool2d.out
aten::gt.Tensor_out
aten::where.self_out
aten::expand_copy.out
aten::clamp.out
aten::mul.out
aten::index_select.out
aten::fmod.Scalar_out
aten::add.out
aten::arange.start_out
aten::eq.Tensor_out
aten::logical_not.out
Keep the regular U55 div-mode test on the non-portable ELF so it still
detects undelegated CPU fallback regions. Add a separate U55 portable-op
variant without xfails to verify the mixed delegated and portable
fallback runtime path.
Reduce the default Corstone-300 linker heap to keep the portable-op
runner linkable with Arm GNU toolchain 15.2 after the additional
fallback registrations, while making heap and stack sizes overrideable.
Fixes the flow tests:
test_adaptive_avgpool2d_batch_sizes[arm_ethos_u55]
test_divide_f32_trunc[arm_ethos_u55]
test_swin_v2_t[arm_ethos_u55-static_shapes-float32]
Signed-off-by: Zingo Andersen <Zingo.Andersen@arm.com>1 parent c9688e9 commit 2265ab8
4 files changed
Lines changed: 62 additions & 7 deletions
File tree
- backends/arm/test
- ops
- examples/arm/executor_runner
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
| |||
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
| 148 | + | |
| 149 | + | |
142 | 150 | | |
| 151 | + | |
143 | 152 | | |
144 | 153 | | |
145 | 154 | | |
146 | 155 | | |
147 | 156 | | |
148 | 157 | | |
149 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
150 | 176 | | |
151 | 177 | | |
152 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
30 | 42 | | |
31 | 43 | | |
32 | 44 | | |
33 | | - | |
34 | | - | |
| 45 | + | |
| 46 | + | |
35 | 47 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
291 | 300 | | |
292 | 301 | | |
293 | 302 | | |
294 | 303 | | |
295 | 304 | | |
296 | 305 | | |
297 | | - | |
| 306 | + | |
298 | 307 | | |
299 | 308 | | |
300 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
| |||
0 commit comments