Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .clangd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CompileFlags:
CompilationDatabase: out/all_ops/ARMCM55/Debug
CompilationDatabase: c:\Users\chrfav01\benchresults\cmsis-all-ops-test\out\all_ops\ARMCM55\Debug
Add:
- -include
- out/all_ops/ARMCM55/Debug/compile_macros.h
- c:\Users\chrfav01\benchresults\cmsis-all-ops-test\out\all_ops\ARMCM55\Debug\compile_macros.h
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tmp/
*.cbuild-set.yml
*.cbuild-run.yml
__pycache__/
run.sh


# models/, all_ops.cproject.yml and embedded_models_blob.S / embedded_models.{cpp,h}
# are checked in here so the project builds standalone (the upstream generators
Expand Down
39 changes: 39 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,45 @@
"target": {
"port": "3333"
}
},
{
"name": "CMSIS_DAP@pyOCD (launch)",
"type": "gdbtarget",
"request": "launch",
"cwd": "${workspaceFolder}/",
"program": "out/all_ops/ARMCM55/Debug/all_ops.elf",
"gdb": "arm-none-eabi-gdb",
"auxiliaryGdb": true,
"preLaunchTask": "CMSIS Load",
"initCommands": [
"monitor reset halt",
"tbreak main"
],
"customResetCommands": [
"monitor reset halt",
"maintenance flush register-cache",
"maintenance flush dcache",
"tbreak main",
"continue"
],
"target": {
"server": "pyocd",
"serverParameters": [
"gdbserver",
"--probe",
"cmsisdap:",
"--cbuild-run",
"${command:cmsis-csolution.getCbuildRunFile}",
"--quiet",
"--log",
"*.cbuild_run,*server=info"
],
"port": "3333"
},
"cmsis": {
"cbuildRunFile": "${command:cmsis-csolution.getCbuildRunFile}",
"updateConfiguration": "auto"
}
}
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"memory-inspector.groupings.MAUsPerGroup": 4,
"memory-inspector.scrollingBehavior": "Auto-Append",
"clangd.arguments": [
"--compile-commands-dir=${workspaceFolder}/out/all_ops/ARMCM55/Debug"
"--compile-commands-dir=c:\\Users\\chrfav01\\benchresults\\cmsis-all-ops-test\\out\\all_ops\\ARMCM55\\Debug"
],
"fvpGdb.binary": "FVP_Corstone_SSE-300"
}
20 changes: 12 additions & 8 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@
"options": {
"cwd": "${workspaceFolder}/",
"shell": {
"executable": "/bin/bash",
"executable": "cmd.exe",
"args": [
"-c"
"/d",
"/c"
]
}
},
Expand All @@ -115,9 +116,10 @@
"options": {
"cwd": "${workspaceFolder}/",
"shell": {
"executable": "/bin/bash",
"executable": "cmd.exe",
"args": [
"-c"
"/d",
"/c"
]
}
},
Expand All @@ -137,9 +139,10 @@
"options": {
"cwd": "${workspaceFolder}/",
"shell": {
"executable": "/bin/bash",
"executable": "cmd.exe",
"args": [
"-c"
"/d",
"/c"
]
}
},
Expand Down Expand Up @@ -173,9 +176,10 @@
"options": {
"cwd": "${workspaceFolder}/",
"shell": {
"executable": "/bin/bash",
"executable": "cmd.exe",
"args": [
"-c"
"/d",
"/c"
]
}
},
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ Ethos-U backend component.

## Prerequisites

- [CMSIS-Toolbox](https://github.com/Open-CMSIS-Pack/cmsis-toolbox) ≥ 2.13
- [CMSIS-Toolbox](https://github.com/Open-CMSIS-Pack/cmsis-toolbox) ≥ 2.14
(`cbuild`, `csolution`, `cpackget`)
- A toolchain: `arm-none-eabi-gcc` 14.x (GCC), Arm Compiler 6 (AC6), or Arm
Toolchain for Embedded / LLVM (CLANG)
- CLANG requires CMSIS-Toolbox ≥ 2.14
- These packs installed (declared in [all_ops.csolution.yml](all_ops.csolution.yml)):
`PyTorch::ExecuTorch`, `ARM::CMSIS`, `ARM::Cortex_DFP`, `ARM::CMSIS-NN`,
**`ARM::CMSIS-Compiler`**:
Expand Down
8 changes: 7 additions & 1 deletion all_ops.cproject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

project:
packs:
- pack: PyTorch::ExecuTorch
- pack: PyTorch::ExecuTorch@1.3.1-rc9

define:
# Route ExecuTorch ET_LOG() through et_pal_override.cpp -> printf ->
Expand Down Expand Up @@ -37,6 +37,7 @@ project:
- component: Machine Learning:ExecuTorch:Runtime
- component: Machine Learning:ExecuTorch:Kernel Utils
- component: Machine Learning:ExecuTorch:Kernel Registration
- component: Machine Learning:ExecuTorch:Extension Tensor
- component: ARM::CMSIS:NN Lib
- component: Machine Learning:ExecuTorch Operators:Portable adaptive_avg_pool2d
- component: Machine Learning:ExecuTorch Operators:Portable clone_dim_order
Expand Down Expand Up @@ -258,6 +259,8 @@ project:
# AC6: armlink's RW-data decompressor hardfaults at startup; disable RW
# compression so scatter-load does a plain copy.
- for-compiler: AC6
C: [-ffp-mode=full]
CPP: [-ffp-mode=full]
Link: [--datacompressor=off]

groups:
Expand All @@ -268,6 +271,9 @@ project:
# gen_embedded_models.py. A stub (0 models) is emitted when the model
# export step has not run, so build/link coverage works without torch.
- file: ./embedded_models.cpp
- file: ./arm_embedded_module.cpp
- file: ./arm_memory_allocator.cpp
- file: ./embedded_models_blob.S
- file: ./stdout_semihosting.c
- file: ./et_pal_override.cpp
- file: ./exit_semihosting.c
8 changes: 5 additions & 3 deletions all_ops.csolution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
# LICENSE file in the root directory of this source tree.

solution:
created-for: CMSIS-Toolbox@2.13.0
created-for: CMSIS-Toolbox@2.14.0
cdefault:
compiler: GCC@14.3.1
compiler: CLANG@22.1.0
#compiler: AC6@6.24.0
#compiler: GCC@14.3.1

packs:
- pack: ARM::CMSIS@>=6.0.0
- pack: ARM::Cortex_DFP@>=1.1.0
- pack: ARM::CMSIS-NN
- pack: ARM::CMSIS-Compiler
- pack: PyTorch::ExecuTorch
- pack: PyTorch::ExecuTorch@1.3.1-rc9

target-types:
- type: ARMCM55
Expand Down
Loading