File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,12 @@ install_executorch_and_backend_lib() {
21
21
-DANDROID_ABI=" ${ANDROID_ABI} " \
22
22
-DANDROID_PLATFORM=android-23 \
23
23
-DCMAKE_INSTALL_PREFIX=cmake-android-out \
24
+ -DCMAKE_BUILD_TYPE=Release \
24
25
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
25
26
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
27
+ -DEXECUTORCH_BUILD_XNNPACK=ON \
28
+ -DEXECUTORCH_BUILD_OPTIMIZED=ON \
29
+ -DXNNPACK_ENABLE_ARM_BF16=OFF \
26
30
-Bcmake-android-out .
27
31
28
32
cmake --build cmake-android-out -j4 --target install --config Release
@@ -36,6 +40,8 @@ build_llama_runner() {
36
40
-DANDROID_ABI=" ${ANDROID_ABI} " \
37
41
-DANDROID_PLATFORM=android-23 \
38
42
-DCMAKE_INSTALL_PREFIX=cmake-android-out \
43
+ -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=python \
44
+ -DEXECUTORCH_BUILD_OPTIMIZED=ON \
39
45
-Bcmake-android-out/examples/models/llama2 examples/models/llama2
40
46
41
47
cmake --build cmake-android-out/examples/models/llama2 -j4 --config Release
You can’t perform that action at this time.
0 commit comments