Skip to content

Commit 37dbd5d

Browse files
Fix optimized kernels build. (#5536)
Fix optimized kernels build. (#5534) Summary: Pull Request resolved: #5534 Reviewed By: dltn Differential Revision: D63199241 fbshipit-source-id: 9b097c3cc6c492fc13d9183c8679de9d00c80d21 (cherry picked from commit 3ec4161) Co-authored-by: Anthony Shoumikhin <[email protected]>
1 parent d770fe8 commit 37dbd5d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

build/build_apple_frameworks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ libcustom_ops.a,\
5757

5858
FRAMEWORK_KERNELS_OPTIMIZED="kernels_optimized:\
5959
liboptimized_kernels.a,\
60-
liboptimized_ops_lib.a,\
60+
liboptimized_native_cpu_ops_lib.a,\
6161
:"
6262

6363
FRAMEWORK_KERNELS_PORTABLE="kernels_portable:\

examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj/project.pbxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,8 @@
925925
MARKETING_VERSION = 1.0;
926926
OTHER_LDFLAGS = "";
927927
"OTHER_LDFLAGS[sdk=iphoneos*]" = (
928+
"-force_load",
929+
"$(BUILT_PRODUCTS_DIR)/libkernels_optimized-ios-release.a",
928930
"-force_load",
929931
"$(BUILT_PRODUCTS_DIR)/libkernels_portable-ios-release.a",
930932
"-force_load",
@@ -939,6 +941,8 @@
939941
"$(BUILT_PRODUCTS_DIR)/libbackend_mps-ios-release.a",
940942
);
941943
"OTHER_LDFLAGS[sdk=iphonesimulator*]" = (
944+
"-force_load",
945+
"$(BUILT_PRODUCTS_DIR)/libkernels_optimized-simulator-release.a",
942946
"-force_load",
943947
"$(BUILT_PRODUCTS_DIR)/libkernels_portable-simulator-release.a",
944948
"-force_load",
@@ -1096,6 +1100,8 @@
10961100
);
10971101
MARKETING_VERSION = 1.0;
10981102
"OTHER_LDFLAGS[sdk=iphoneos*]" = (
1103+
"-force_load",
1104+
"$(BUILT_PRODUCTS_DIR)/libkernels_optimized-ios-debug.a",
10991105
"-force_load",
11001106
"$(BUILT_PRODUCTS_DIR)/libkernels_portable-ios-debug.a",
11011107
"-force_load",
@@ -1110,6 +1116,8 @@
11101116
"$(BUILT_PRODUCTS_DIR)/libbackend_mps-ios-debug.a",
11111117
);
11121118
"OTHER_LDFLAGS[sdk=iphonesimulator*]" = (
1119+
"-force_load",
1120+
"$(BUILT_PRODUCTS_DIR)/libkernels_optimized-simulator-debug.a",
11131121
"-force_load",
11141122
"$(BUILT_PRODUCTS_DIR)/libkernels_portable-simulator-debug.a",
11151123
"-force_load",

0 commit comments

Comments
 (0)