File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
examples/demo-apps/android/LlamaDemo Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 31
31
fi
32
32
cmake --build " ${CMAKE_OUT} " -j " ${CMAKE_JOBS} " --target install --config Release
33
33
34
- cmake examples/models/llama2 \
35
- -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK /build/cmake/android.toolchain.cmake \
36
- -DANDROID_ABI=" $ANDROID_ABI " \
37
- -DANDROID_PLATFORM=android-23 \
38
- -DCMAKE_INSTALL_PREFIX=" ${CMAKE_OUT} " \
39
- -DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
40
- -DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
41
- -DEXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL=ON \
42
- -DEXECUTORCH_BUILD_XNNPACK=ON \
43
- -DCMAKE_BUILD_TYPE=Release \
44
- -B" ${CMAKE_OUT} " /examples/models/llama2
45
-
46
- cmake --build " ${CMAKE_OUT} " /examples/models/llama2 -j " ${CMAKE_JOBS} " --config Release
47
-
48
34
cmake extension/android \
49
35
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK} /build/cmake/android.toolchain.cmake \
50
36
-DANDROID_ABI=" ${ANDROID_ABI} " \
51
37
-DANDROID_PLATFORM=android-23 \
52
38
-DCMAKE_INSTALL_PREFIX=" ${CMAKE_OUT} " \
53
39
-DEXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL=ON \
40
+ -DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
54
41
-DEXECUTORCH_BUILD_LLAMA_JNI=ON \
55
42
-DCMAKE_BUILD_TYPE=Release \
56
43
-B" ${CMAKE_OUT} " /extension/android
You can’t perform that action at this time.
0 commit comments