Skip to content

Commit a4dad94

Browse files
committed
Remove EXECUTORCH_BUILD_LLAMA_JNI cmake flag
1 parent f98273c commit a4dad94

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/_android.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
3636
# Build LLM Demo for Android
3737
export BUILD_AAR_DIR=aar-out
38+
export EXECUTORCH_BUILD_EXTENSION_LLM=ON
3839
mkdir -p $BUILD_AAR_DIR
3940
bash scripts/build_android_library.sh
4041
cp ${BUILD_AAR_DIR}/executorch.aar $ARTIFACTS_DIR_NAME

extension/android/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ if(EXECUTORCH_BUILD_EXTENSION_TRAINING)
151151
target_compile_definitions(executorch_jni PUBLIC EXECUTORCH_BUILD_EXTENSION_TRAINING=1)
152152
endif()
153153

154-
if(EXECUTORCH_BUILD_LLAMA_JNI)
154+
if(EXECUTORCH_BUILD_EXTENSION_LLM)
155155
target_sources(executorch_jni PRIVATE jni/jni_layer_llama.cpp jni/log.cpp)
156156
list(APPEND link_libraries llama_runner llava_runner)
157157
target_compile_definitions(executorch_jni PUBLIC EXECUTORCH_BUILD_LLAMA_JNI=1)

scripts/build_android_library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ build_android_native_library() {
5555
-DEXECUTORCH_BUILD_EXTENSION_TRAINING=ON \
5656
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
5757
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
58+
-DEXECUTORCH_BUILD_EXTENSION_LLM="${EXECUTORCH_BUILD_EXTENSION_LLM:-OFF}" \
5859
-DEXECUTORCH_BUILD_KERNELS_LLM="${EXECUTORCH_BUILD_EXTENSION_LLM:-ON}" \
59-
-DEXECUTORCH_BUILD_LLAMA_JNI="${EXECUTORCH_BUILD_EXTENSION_LLM:-ON}" \
6060
-DEXECUTORCH_BUILD_NEURON="${EXECUTORCH_BUILD_NEURON}" \
6161
-DNEURON_BUFFER_ALLOCATOR_LIB="${NEURON_BUFFER_ALLOCATOR_LIB}" \
6262
-DEXECUTORCH_BUILD_QNN="${EXECUTORCH_BUILD_QNN}" \

0 commit comments

Comments
 (0)