Skip to content

Commit cf57e9f

Browse files
authored
Update 5-Run-Benchmark-on-Android.md
1 parent 33262e1 commit cf57e9f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/learning-paths/smartphones-and-mobile/Build-Llama3-Chat-Android-App-Using-Executorch-And-XNNPACK/5-Run-Benchmark-on-Android.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Make sure you can confirm $ANDROID_NDK/build/cmake/android.toolchain.cmake is av
2424

2525
### 2. Build ExecuTorch and associated libraries for Android with KleidiAI
2626

27+
You are now ready to build ExecuTorch for Android by taking advantage of the performance optimization provided by the [KleidiAI](https://gitlab.arm.com/kleidi/kleidiai) kernels.
28+
2729
Use `cmake` to cross-compile ExecuTorch:
2830

2931
``` bash
@@ -46,6 +48,9 @@ cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
4648

4749
cmake --build cmake-out-android -j7 --target install --config Release
4850
```
51+
{{% notice Note %}}
52+
Make sure you add -DEXECUTORCH_XNNPACK_ENABLE_KLEIDI=ON option to enable support for KleidiAI kernels in ExecuTorch with XNNPack.
53+
{{% /notice %}}
4954

5055
### 3. Build Llama runner for android
5156

@@ -117,4 +122,4 @@ I 00:00:09.624432 executorch:stats.h:154] Time to first generated token: 0.2020
117122
I 00:00:09.624434 executorch:stats.h:161] Sampling time over 127 tokens: 0.110000 (seconds)
118123
```
119124
120-
You have successfully run the llama 3.1 1B model on your Android smartphone with ExecuTorch using KleidiAI.
125+
You have successfully run the llama 3.1 1B model on your Android smartphone with ExecuTorch using KleidiAI kernels.

0 commit comments

Comments
 (0)