Skip to content

Commit bddeb99

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Fix Android CI (#2659)
Summary: Pull Request resolved: #2659 Reviewed By: mcr229 Differential Revision: D55341606 Pulled By: kirklandsign fbshipit-source-id: 7f26dcd76f3d5870a641a3ba9f5f73367452ce06
1 parent a3bf63b commit bddeb99

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/demo-apps/android/ExecuTorchDemo/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ cmake .. -DCMAKE_INSTALL_PREFIX=cmake-out \
9393
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON
9494
```
9595

96-
When we set `EXECUTORCH_BUILD_XNNPACK=ON`, we will build the target [`xnn_executor_runner_lib`](https://github.com/pytorch/executorch/blob/main/backends/xnnpack/CMakeLists.txt) which in turn is linked into libexecutorch_jni via [CMake](https://github.com/pytorch/executorch/blob/main/examples/demo-apps/android/jni/CMakeLists.txt).
96+
When we set `EXECUTORCH_BUILD_XNNPACK=ON`, we will build the target [`xnnpack_backend`](https://github.com/pytorch/executorch/blob/main/backends/xnnpack/CMakeLists.txt) which in turn is linked into libexecutorch_jni via [CMake](https://github.com/pytorch/executorch/blob/main/examples/demo-apps/android/jni/CMakeLists.txt).
9797

98-
`libexecutorch_jni.so` wraps up the required XNNPACK Backend runtime library from `xnn_executor_runner_lib`, and adds an additional JNI layer using fbjni. This is later exposed to Java app.
98+
`libexecutorch_jni.so` wraps up the required XNNPACK Backend runtime library from `xnnpack_backend`, and adds an additional JNI layer using fbjni. This is later exposed to Java app.
9999

100100
2. Build the libraries:
101101

extension/android/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ if(CMAKE_TOOLCHAIN_ANDROID)
2424
target_link_libraries(executorch_jni qnn_executorch_backend)
2525
endif()
2626
if(EXECUTORCH_BUILD_XNNPACK)
27-
target_link_libraries(executorch_jni xnn_executor_runner_lib)
27+
target_link_libraries(executorch_jni xnnpack_backend)
2828
endif()
2929
if(EXECUTORCH_BUILD_VULKAN)
3030
target_link_libraries(executorch_jni vulkan_executor_runner_lib)
3131
endif()
3232
target_compile_options(executorch_jni PUBLIC ${_common_compile_options})
3333

3434
add_library(executorch_llama_jni SHARED jni/jni_layer_llama.cpp)
35-
target_link_libraries(executorch_llama_jni fbjni llama_runner)
35+
target_link_libraries(executorch_llama_jni fbjni llama_runner portable_ops_lib)
3636
if(EXECUTORCH_BUILD_XNNPACK)
37-
target_link_libraries(executorch_llama_jni xnn_executor_runner_lib)
37+
target_link_libraries(executorch_llama_jni xnnpack_backend)
3838
endif()
3939
if(EXECUTORCH_BUILD_VULKAN)
4040
target_link_libraries(executorch_llama_jni vulkan_executor_runner_lib)

0 commit comments

Comments
 (0)