Skip to content

Commit 9fd8c72

Browse files
shoumikhinfacebook-github-bot
authored andcommitted
Build frameworks with EXECUTORCH_XNNPACK_SHARED_WORKSPACE flag.
Summary: Reduced the memory when runing LLMs. Reviewed By: larryliu0820 Differential Revision: D62308655
1 parent 7122d31 commit 9fd8c72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/build_apple_frameworks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ cmake_build() {
163163
-DEXECUTORCH_BUILD_COREML=$COREML \
164164
-DEXECUTORCH_BUILD_MPS=$MPS \
165165
-DEXECUTORCH_BUILD_XNNPACK=$XNNPACK \
166+
-DEXECUTORCH_XNNPACK_SHARED_WORKSPACE=ON \
166167
-DEXECUTORCH_BUILD_EXTENSION_APPLE=ON \
167168
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
168169
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \

0 commit comments

Comments
 (0)