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
- Explicitly specify paths to FVP simulator with different examples /
usages
### Summary
[PLEASE REMOVE] See [CONTRIBUTING.md's Pull
Requests](https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#pull-requests)
for ExecuTorch PR guidelines.
[PLEASE REMOVE] If this PR closes an issue, please add a `Fixes
#<issue-id>` line.
[PLEASE REMOVE] If this PR introduces a fix or feature that should be
the upcoming release notes, please add a "Release notes: <area>" label.
For a list of available release notes labels, check out
[CONTRIBUTING.md's Pull
Requests](https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#pull-requests).
### Test plan
[PLEASE REMOVE] How did you test this PR? Please write down any manual
commands you used and note down tests that you have written if
applicable.
# should produce ./mv2_arm_delegate_ethos-u55-128.pte
255
255
```
256
256
@@ -312,25 +312,60 @@ The SDK dir is the same one prepared [earlier](#setup-the-arm-ethos-u-software-d
312
312
313
313
Note, you have to generate a new `executor-runner` binary if you want to change the model or the `.pte` file. This constraint is from the constrained bare-metal runtime environment you have for Corstone-300/Corstone-320 platforms.
314
314
315
-
This is performed by the `backends/arm/scripts/build_executor_runner.sh` script runned from `run.sh`.
315
+
This step is executed by the build_executor_runner.sh script, which is invoked from the run.sh in the backends/arm/scripts folder.
316
316
317
317
```{tip}
318
318
The `run.sh` script takes in `--target` option, which provides a way to provide a specific target, Corstone-300(ethos-u55-128) or Corstone-320(ethos-u85-128)
319
319
```
320
320
321
321
## Running on Corstone FVP Platforms
322
322
323
-
Once the elf is prepared, regardless of the `.pte` file variant is used to generate the bare metal elf. `run.sh` will run the FVP for you via the `backends/arm/scripts/run_fvp.sh` script but you can also run it directly.
323
+
Once the elf is prepared, regardless of the `.pte` file variant is used to generate the bare metal elf. `run.sh` will run the FVP for you via the `backends/arm/scripts/run_fvp.sh` script.
324
324
325
+
#### Automatic FVP Selection
325
326
326
-
The below command is used to run the [MV2Model](#mv2module) on Corstone-320 FVP
327
+
- To run a specific test model with the compiler flag and target
Note that you could use `build_executor_runner.sh` and `run_fvp.sh` scripts in tandem by passing the relevant --target argument (e.g., --target=ethos-u55-128), the correct FVP binary will be chosen automatically. For more details, see the [section on Runtime Integration](https://docs.pytorch.org/executorch/main/backends-arm-ethos-u.html#runtime-integration).
343
+
344
+
345
+
#### Manual FVP Binary Selection
346
+
347
+
- If you build for the Ethos delegate U55/U65 target (e.g., using --target=ethos-u55-128 or --target=ethos-u65-256 with `build_executor_runner.sh` and `run_fvp.sh`), you should use the corresponding FVP binary:
--timelimit 120 ||true# seconds- after which sim will kill itself
342
377
```
343
378
344
-
If successful, the simulator should produce something like the following on the shell,
379
+
#### Verification of Successful FVP Execution
380
+
After running the FVP command, either automatically or manually, you should see output similar to the following on your shell if the execution is successful:
345
381
346
382
```console
347
383
I [executorch:arm_executor_runner.cpp:364] Model in 0x70000000 $
0 commit comments