Skip to content

Commit 6b2537d

Browse files
Fix QNN Android AAR build (#18577)
Add missing attention_sink_rope_runner.cpp to Android JNI build This fixes a linker error when building libexecutorch_jni.so for the QNN flavor of the Android AAR. The QNN llama runner sources (lhd_token_generator.cpp, token_generator.cpp, prompt_processor.cpp, runner.cpp) reference AttentionSinkRopeRunner but its implementation wasn't being compiled into the JNI library.
1 parent fa81941 commit 6b2537d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

extension/android/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ if(EXECUTORCH_BUILD_LLAMA_JNI)
185185
${EXECUTORCH_ROOT}/examples/qualcomm/oss_scripts/llama/runner/prompt_processor.cpp
186186
${EXECUTORCH_ROOT}/examples/qualcomm/oss_scripts/llama/runner/token_generator.cpp
187187
${EXECUTORCH_ROOT}/examples/qualcomm/oss_scripts/llama/runner/lhd_token_generator.cpp
188+
${EXECUTORCH_ROOT}/examples/qualcomm/oss_scripts/llama/runner/attention_sink_rope_runner.cpp
188189
${EXECUTORCH_ROOT}/examples/qualcomm/oss_scripts/llama/runner/rpc_mem.cpp
189190
${EXECUTORCH_ROOT}/examples/qualcomm/oss_scripts/llama/runner/kv_manager.cpp
190191
)

0 commit comments

Comments
 (0)