Skip to content

Commit 8653c0f

Browse files
committed
lint
1 parent 6292fe5 commit 8653c0f

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

CMakeLists.txt

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -684,10 +684,16 @@ endif()
684684

685685
if(EXECUTORCH_BUILD_KERNELS_TORCHAO)
686686
if(NOT TARGET cpuinfo)
687-
message(FATAL_ERROR "EXECUTORCH_BUILD_KERNELS_TORCHAO requires EXECUTORCH_BUILD_CPUINFO be set ON")
687+
message(
688+
FATAL_ERROR
689+
"EXECUTORCH_BUILD_KERNELS_TORCHAO requires EXECUTORCH_BUILD_CPUINFO be set ON"
690+
)
688691
endif()
689692
if(NOT TARGET pthreadpool)
690-
message(FATAL_ERROR "EXECUTORCH_BUILD_KERNELS_TORCHAO requires EXECUTORCH_BUILD_PTHREADPOOL be set ON")
693+
message(
694+
FATAL_ERROR
695+
"EXECUTORCH_BUILD_KERNELS_TORCHAO requires EXECUTORCH_BUILD_PTHREADPOOL be set ON"
696+
)
691697
endif()
692698

693699
# Configure TorchAO kernels
@@ -702,10 +708,12 @@ if(EXECUTORCH_BUILD_KERNELS_TORCHAO)
702708
message(FATAL_ERROR "EXECUTORCH_INCLUDE_DIRS is already defined")
703709
endif()
704710
set(EXECUTORCH_INCLUDE_DIRS
705-
${EXECUTORCH_ROOT}/backends/xnnpack/third-party/pthreadpool/include
706-
${EXECUTORCH_ROOT}/backends/xnnpack/third-party/cpuinfo/include
711+
${EXECUTORCH_ROOT}/backends/xnnpack/third-party/pthreadpool/include
712+
${EXECUTORCH_ROOT}/backends/xnnpack/third-party/cpuinfo/include
713+
)
714+
add_subdirectory(
715+
${CMAKE_CURRENT_SOURCE_DIR}/third-party/ao/torchao/experimental
707716
)
708-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third-party/ao/torchao/experimental)
709717
unset(EXECUTORCH_INCLUDE_DIRS)
710718

711719
executorch_target_link_options_shared_lib(torchao_ops_executorch)
@@ -719,7 +727,9 @@ if(EXECUTORCH_BUILD_KERNELS_TORCHAO)
719727
DESTINATION ${_common_include_directories}
720728
)
721729
# If using KleidiAI and XNNPACK has not installed it already, install it
722-
if(TORCHAO_BUILD_KLEIDIAI AND NOT (EXECUTORCH_BUILD_XNNPACK AND EXECUTORCH_XNNPACK_ENABLE_KLEIDI))
730+
if(TORCHAO_BUILD_KLEIDIAI AND NOT (EXECUTORCH_BUILD_XNNPACK
731+
AND EXECUTORCH_XNNPACK_ENABLE_KLEIDI)
732+
)
723733
install(
724734
TARGETS kleidiai
725735
EXPORT ExecuTorchTargets

examples/models/llama/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ if(TARGET torchao_ops_executorch)
120120
list(APPEND link_libraries torchao_ops_executorch)
121121
endif()
122122

123-
124123
if(EXECUTORCH_BUILD_KERNELS_TORCHAO_MPS)
125124
# Currently only enable this on Arm-based Macs
126125
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL

0 commit comments

Comments
 (0)