You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plumbing for Arm Example Runnner to use Zephyr Toolchain (#12078)
### Summary
Once `setup.sh` and `PATH` have been set to point to Arm Zephyr
toolchain, the `run.sh` script and its child processes must use the
specified toolchain. This change adds the plumbing needed to support
this. This change **does not** include the Zephyr binary in the
`arm_executor_runner`, but merely uses allows the runner to be built
with a different toolchain.
### Test plan
Environment setup:
```
./examples/arm/setup.sh --i-agree-to-the-contained-eula --target-toolchain zephyr
source /home/zephyruser/executorch/examples/arm/ethos-u-scratch/setup_path.sh
```
The following can be run to produce the same results as in the [Arm
Ethos-U
tutorial](https://docs.pytorch.org/executorch/main/tutorial-arm-ethos-u.html),
now utilizing the Arm Zephyr toolchain instead of the bare metal:
```
examples/arm/run.sh --toolchain=arm-zephyr-eabi-gcc --model_name=add --no_quantize --target=ethos-u55-128
```
Which still produces the following output:
```
I [executorch:arm_executor_runner.cpp:747 main()] Model executed successfully.
I [executorch:arm_executor_runner.cpp:751 main()] 1 outputs:
Output[0][0]: (int) 2
Output[0][1]: (int) 2
Output[0][2]: (int) 2
Output[0][3]: (int) 2
Output[0][4]: (int) 2
I [executorch:arm_executor_runner.cpp:874 main()] Program complete, exiting.
I [executorch:arm_executor_runner.cpp:878 main()] ♦
Info: /OSCI/SystemC: Simulation stopped by user.
[warning ][main@0][3440 ns] Simulation stopped by user
[backends/arm/scripts/run_fvp.sh] Simulation complete, 0
Checking for problems in log:
No problems found!
+ set +x
```
echo"Build Arm Baremetal executor_runner for ${target} with ${pte_file} using ${system_config}${memory_mode}${extra_build_flags} to '${output_folder}/cmake-out'"
132
+
echo"Build Arm ${toolchain/-gcc/} executor_runner for ${target} with ${pte_file} using ${system_config}${memory_mode}${extra_build_flags} to '${output_folder}/cmake-out'"
0 commit comments