Skip to content

Add extension parallel as a dep to custom ops #8995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions extension/llm/custom_ops/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ set(custom_ops_libs pthreadpool)
list(APPEND custom_ops_libs cpuinfo)
list(APPEND custom_ops_libs cpublas)
list(APPEND custom_ops_libs eigen_blas)
list(APPEND custom_ops_libs extension_threadpool)
list(APPEND custom_ops_libs extension_parallel)

if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|armv7)$")
list(APPEND _custom_ops__srcs
Expand All @@ -63,10 +65,8 @@ endif()

list(TRANSFORM _custom_ops__srcs PREPEND "${EXECUTORCH_ROOT}/")

if(NOT EXECUTORCH_BUILD_XNNPACK)
list(APPEND custom_ops_libs extension_threadpool)
else()
list(APPEND custom_ops_libs extension_threadpool xnnpack_backend)
if(EXECUTORCH_BUILD_XNNPACK)
list(APPEND custom_ops_libs extension_threadpool extension_parallel xnnpack_backend)
endif()

add_library(custom_ops ${_custom_ops__srcs})
Expand Down
Loading