Skip to content

Commit 3ddea49

Browse files
committed
Update on "Add CMake preset for LLM"
Summary: By default turn on custom ops, optimized kernels, xnnpack. For macOS/iOS turn on coreml and MPS. Test Plan: Rely on CI jobs. [ghstack-poisoned]
1 parent 07f837f commit 3ddea49

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.ci/scripts/test_llama.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ cmake_install_executorch_libraries() {
154154
rm -rf cmake-out
155155
retry cmake --preset llm \
156156
-DCMAKE_INSTALL_PREFIX=cmake-out \
157+
-DCMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE" \
157158
-DEXECUTORCH_BUILD_QNN="$QNN" \
158159
-DQNN_SDK_ROOT="$QNN_SDK_ROOT" \
159160
-Bcmake-out .

tools/cmake/preset/llm.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ set_overridable_option(EXECUTORCH_BUILD_KERNELS_CUSTOM ON)
1616
set_overridable_option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED ON)
1717
set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED ON)
1818
set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON)
19-
set_overridable_option(EXECUTORCH_ENABLE_LOGGING ON)
20-
set_overridable_option(EXECUTORCH_LOG_LEVEL Info)
21-
2219

2320
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
2421
set_overridable_option(EXECUTORCH_BUILD_COREML ON)

0 commit comments

Comments
 (0)