Skip to content

Commit 1370e34

Browse files
committed
add xnnpack and opt lib back
1 parent a56ee48 commit 1370e34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.ci/scripts/build_llama_android.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ install_executorch_and_backend_lib() {
2121
-DANDROID_ABI="${ANDROID_ABI}" \
2222
-DANDROID_PLATFORM=android-23 \
2323
-DCMAKE_INSTALL_PREFIX=cmake-android-out \
24+
-DCMAKE_BUILD_TYPE=Release \
2425
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
2526
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
27+
-DEXECUTORCH_BUILD_XNNPACK=ON \
28+
-DEXECUTORCH_BUILD_OPTIMIZED=ON \
29+
-DXNNPACK_ENABLE_ARM_BF16=OFF \
2630
-Bcmake-android-out .
2731

2832
cmake --build cmake-android-out -j4 --target install --config Release
@@ -36,6 +40,8 @@ build_llama_runner() {
3640
-DANDROID_ABI="${ANDROID_ABI}" \
3741
-DANDROID_PLATFORM=android-23 \
3842
-DCMAKE_INSTALL_PREFIX=cmake-android-out \
43+
-DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=python \
44+
-DEXECUTORCH_BUILD_OPTIMIZED=ON \
3945
-Bcmake-android-out/examples/models/llama2 examples/models/llama2
4046

4147
cmake --build cmake-android-out/examples/models/llama2 -j4 --config Release

0 commit comments

Comments
 (0)