Skip to content

Commit 9c42626

Browse files
authored
Update 07-run-model.md
1 parent 9d23c22 commit 9c42626

File tree

1 file changed

+14
-4
lines changed
  • content/learning-paths/mobile-graphics-and-gaming/measure-kleidiai-kernel-performance-on-executorch

1 file changed

+14
-4
lines changed

content/learning-paths/mobile-graphics-and-gaming/measure-kleidiai-kernel-performance-on-executorch/07-run-model.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
---
2-
title: Run model and generate the etdump
2+
title: Run model and generate the ETDump
33
weight: 8
44

55
### FIXED, DO NOT MODIFY
66
layout: learningpathall
77
---
88

9-
After generating the model, we can now run it on an ARM64 platform using the following command:
9+
### Copy artifacts to your Arm64 target
10+
From your x86_64 host (where you cross-compiled), copy the runner and exported models to the Arm device:
11+
12+
```bash
13+
scp $WORKSPACE/build-arm64/executor_runner <arm_user>@<arm_host>:~/bench/
14+
scp -r model/ <arm_user>@<arm_host>:~/bench/
15+
```
16+
17+
### Run a model and emit ETDump
18+
Use one of the models you exported earlier (e.g., FP32 linear: linear_model_pf32_gemm.pte).
19+
The flags below tell executor_runner where to write the ETDump and how many times to execute.
1020

1121
```bash
12-
cd $WORKSPACE
13-
/build-arm64/executor_runner -etdump_path model/linear_model_f32.etdump -model_path model/linear_model_f32.pte -num_executions=1 -cpu_threads 1
22+
cd ~/bench
23+
./executor_runner -etdump_path model/linear_model_f32.etdump -model_path model/linear_model_f32.pte -num_executions=1 -cpu_threads 1
1424

1525
```
1626

0 commit comments

Comments
 (0)