Skip to content

Commit f35b002

Browse files
committed
up
1 parent 880ba1c commit f35b002

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

CMakeLists.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ if(EXECUTORCH_BUILD_KERNELS_TORCHAO)
695695
set(TORCHAO_BUILD_EXECUTORCH_OPS ON)
696696
set(TORCHAO_BUILD_CPU_AARCH64 ON)
697697
set(TORCHAO_ENABLE_ARM_NEON_DOT ON)
698-
set(TORCHAO_BUILD_KLEIDIAI OFF) # TODO: enable
698+
set(TORCHAO_BUILD_KLEIDIAI ON)
699699

700700
# TorchAO kernels look for EXECUTORCH_INCLUDE_DIRS
701701
if(DEFINED EXECUTORCH_INCLUDE_DIRS)
@@ -718,6 +718,17 @@ if(EXECUTORCH_BUILD_KERNELS_TORCHAO)
718718
INCLUDES
719719
DESTINATION ${_common_include_directories}
720720
)
721+
# 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))
723+
install(
724+
TARGETS kleidiai
725+
EXPORT ExecuTorchTargets
726+
DESTINATION lib
727+
INCLUDES
728+
DESTINATION ${_common_include_directories}
729+
)
730+
endif()
731+
721732
endif()
722733

723734
if(EXECUTORCH_BUILD_PYBIND)

0 commit comments

Comments
 (0)