File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff 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+
721732endif ()
722733
723734if (EXECUTORCH_BUILD_PYBIND)
You can’t perform that action at this time.
0 commit comments