@@ -74,6 +74,11 @@ define_overridable_option(
7474 "Build the custom ops lib for AOT"
7575 BOOL OFF
7676)
77+ define_overridable_option(
78+ EXECUTORCH_BUILD_KERNELS_QUANTIZED_AOT
79+ "Build the optimized ops library for AOT export usage"
80+ BOOL OFF
81+ )
7782define_overridable_option(
7883 EXECUTORCH_BUILD_EXTENSION_DATA_LOADER
7984 "Build the Data Loader extension"
@@ -109,6 +114,11 @@ define_overridable_option(
109114 "Build the training extension"
110115 BOOL OFF
111116)
117+ define_overridable_option(
118+ EXECUTORCH_BUILD_EXTENSION_APPLE
119+ "Build the Apple extension"
120+ BOOL OFF
121+ )
112122define_overridable_option(
113123 EXECUTORCH_BUILD_MPS
114124 "Build the MPS backend"
@@ -227,13 +237,41 @@ define_overridable_option(
227237set (_default_executorch_build_executor_runner ON )
228238if (APPLE AND "${SDK_NAME} " STREQUAL "iphoneos" )
229239 set (_default_executorch_build_executor_runner OFF )
240+ elseif (DEFINED EXECUTORCH_BUILD_PRESET_FILE)
241+ set (_default_executorch_build_executor_runner OFF )
230242endif ()
231243define_overridable_option(
232244 EXECUTORCH_BUILD_EXECUTOR_RUNNER
233245 "Build the executor_runner executable"
234246 BOOL ${_default_executorch_build_executor_runner}
235247)
236248
249+ # NB: Enabling this will serialize execution of delegate instances Keeping this
250+ # OFF by default to maintain existing behavior, to be revisited.
251+ define_overridable_option(
252+ EXECUTORCH_XNNPACK_SHARED_WORKSPACE
253+ "Enable workspace sharing across different delegate instances"
254+ BOOL ON
255+ )
256+ # Keeping this OFF by default due to regressions in decode and model load with
257+ # kleidi kernels
258+ define_overridable_option(
259+ EXECUTORCH_XNNPACK_ENABLE_KLEIDI
260+ "Enable Arm Kleidi kernels"
261+ BOOL OFF
262+ )
263+ # Turning this on cache weights between partitions and methods. If weights
264+ # are shared across methods/partitions then this can reduce load time and
265+ # memory usage
266+ #
267+ # Keeping this off maintains existing behavior. Turning this on serializes
268+ # execution and initialization of delegates, to be revisited
269+ define_overridable_option(
270+ EXECUTORCH_XNNPACK_ENABLE_WEIGHT_CACHE
271+ "Enable weights cache to cache and manage all packed weights"
272+ BOOL OFF
273+ )
274+
237275# MARK: - Validations
238276# At this point all the options should be configured with their final value.
239277
0 commit comments