Skip to content

Commit 55cf2ad

Browse files
committed
llama cmake
1 parent 2ed44ce commit 55cf2ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/models/llama/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ target_link_options_shared_lib(quantized_ops_lib)
111111
list(APPEND link_libraries quantized_kernels quantized_ops_lib)
112112

113113
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
114-
list(APPEND link_libraries $<LINK_LIBRARY:WHOLE_ARCHIVE,custom_ops>)
114+
target_link_options_shared_lib(custom_ops)
115+
list(APPEND link_libraries custom_ops)
115116
endif()
116117

117118
if(EXECUTORCH_BUILD_TORCHAO)

examples/models/llama/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ cmake -DPYTHON_EXECUTABLE=python \
427427
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
428428
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
429429
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
430-
-DEXECUTORCH_BUILD_XNNPACK=ON \
430+
-DEXECUTORCH_BUILD_XNNPACK=OFF \
431431
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
432432
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
433433
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \

0 commit comments

Comments
 (0)