Skip to content

Commit eed11dc

Browse files
metascroyhinriksnaer
authored andcommitted
up
1 parent 96850fe commit eed11dc

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,27 +243,27 @@ endif()
243243

244244
if(EXECUTORCH_BUILD_KERNELS_TORCHAO)
245245
# Currently only enable this on Arm-based Macs
246+
set(TORCHAO_BUILD_ATEN_OPS OFF)
246247
set(TORCHAO_BUILD_EXECUTORCH_OPS ON)
247248
set(TORCHAO_BUILD_CPU_AARCH64 ON)
248249
set(TORCHAO_ENABLE_ARM_NEON_DOT ON)
249-
set(TORCHAO_BUILD_ATEN_OPS OFF)
250250

251251
# Set ExecuTorch headers and core library so TorchAO can register ops against them
252252
set(EXECUTORCH_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/..)
253-
set(EXECUTORCH_LIBRARIES executorch)
253+
set(EXECUTORCH_LIBRARIES executorch pthreadpool extension_threadpool cpuinfo)
254254

255255
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third-party/ao/torchao/experimental)
256256

257-
# Ensure torchao_ops_executorch can find and link pthreadpool
258-
target_include_directories(torchao_ops_executorch PRIVATE ${PTHREADPOOL_SOURCE_DIR}/include)
259-
target_link_libraries(torchao_ops_executorch PRIVATE pthreadpool)
257+
# # Ensure torchao_ops_executorch can find and link pthreadpool
258+
# target_include_directories(torchao_ops_executorch PRIVATE ${PTHREADPOOL_SOURCE_DIR}/include)
259+
# target_link_libraries(torchao_ops_executorch PRIVATE pthreadpool)
260260

261261
# Only call this on torchao_ops_executorch — pthreadpool is not a shared lib
262262
target_link_options_shared_lib(torchao_ops_executorch)
263263

264264
# Ensure pthreadpool is included in the packaged framework
265265
list(APPEND _dep_libs torchao_ops_executorch)
266-
list(APPEND _dep_libs pthreadpool)
266+
# list(APPEND _dep_libs pthreadpool)
267267
endif()
268268

269269
if(EXECUTORCH_BUILD_TESTS)

scripts/build_apple_frameworks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ cmake_build() {
159159
echo "Building for $platform ($mode) with flag $platform_flag"
160160
mkdir -p "$platform" && cd "$platform" || exit 1
161161
cmake "$SOURCE_ROOT_DIR" -G Xcode \
162-
-DCMAKE_PREFIX_PATH=$(python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())') \
163162
-DCMAKE_BUILD_TYPE="$mode" \
164163
-DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO \
165164
-DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED=NO \

0 commit comments

Comments
 (0)