Skip to content

Commit 54813d9

Browse files
authored
Change Enable KleidiAI to default in CMake (#12452)
1 parent 967e3b9 commit 54813d9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

backends/xnnpack/cmake/Dependencies.cmake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ install(TARGETS xnnpack-microkernels-prod
6868

6969

7070
if(EXECUTORCH_XNNPACK_ENABLE_KLEIDI)
71-
install(TARGETS kleidiai
72-
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
73-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
74-
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
71+
if(TARGET kleidiai)
72+
install(TARGETS kleidiai
73+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
74+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
75+
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
76+
endif()
7577
endif()
7678

7779
# Revert PIC Flag to what it originally was

tools/cmake/preset/default.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ define_overridable_option(
258258
define_overridable_option(
259259
EXECUTORCH_XNNPACK_ENABLE_KLEIDI
260260
"Enable Arm Kleidi kernels"
261-
BOOL OFF
261+
BOOL ON
262262
)
263263
# Turning this on cache weights between partitions and methods. If weights
264264
# are shared across methods/partitions then this can reduce load time and

0 commit comments

Comments
 (0)