Repository navigation
Commit 7f4b8ad
authored
arm: extend CMSIS-Pack smoke test to Cortex-M (pytorch#22113)
## Summary
Extend the CMSIS-Pack smoke consumer to exercise a Cortex-M operator
instead of only a Portable operator.
This change:
- adds the CMSIS-NN component to the smoke project;
- selects `Cortex-M quantized_add`;
uses `ARM::CMSIS-NN@7.0.0` to keep the smoke test on the currently
supported CMSIS-NN major version;
- copies the smoke project into a writable container-local directory so
the test does not depend on host bind-mount ownership.
This directly exercises the Cortex-M / CMSIS-NN path on the ARMCM55
target.
## Testing
```text
python -m pytest \
backends/arm/cmsis_pack/test/test_generate_register_all_kernels.py \
backends/arm/cmsis_pack/test/all_ops/test_gen_cproject.py -q
21 passed
```
```text
DOCKER_IMAGE=ghcr.io/arm-software/avh-mlops/arm-mlops-docker-licensed-community:latest-amd64 \
bash backends/arm/cmsis_pack/test/smoke/run.sh
Build summary: 1 succeeded, 0 failed
=== PASS ===
```
Related to pytorch#14880.
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils
@Sebastian-Larsson @robell @rascani
---------
Signed-off-by: Ricardo Alves de Souza <ricardoasouz@hotmail.com>1 parent 72b2536 commit 7f4b8ad
3 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments