Skip to content

Commit

Permalink
Fix optimized kernels build. (#5536)
Browse files Browse the repository at this point in the history
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 <shoumikhin@meta.com>
  • Loading branch information
pytorchbot and shoumikhin authored Sep 22, 2024
1 parent d770fe8 commit 37dbd5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/build_apple_frameworks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ libcustom_ops.a,\

FRAMEWORK_KERNELS_OPTIMIZED="kernels_optimized:\
liboptimized_kernels.a,\
liboptimized_ops_lib.a,\
liboptimized_native_cpu_ops_lib.a,\
:"

FRAMEWORK_KERNELS_PORTABLE="kernels_portable:\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@
MARKETING_VERSION = 1.0;
OTHER_LDFLAGS = "";
"OTHER_LDFLAGS[sdk=iphoneos*]" = (
"-force_load",
"$(BUILT_PRODUCTS_DIR)/libkernels_optimized-ios-release.a",
"-force_load",
"$(BUILT_PRODUCTS_DIR)/libkernels_portable-ios-release.a",
"-force_load",
Expand All @@ -939,6 +941,8 @@
"$(BUILT_PRODUCTS_DIR)/libbackend_mps-ios-release.a",
);
"OTHER_LDFLAGS[sdk=iphonesimulator*]" = (
"-force_load",
"$(BUILT_PRODUCTS_DIR)/libkernels_optimized-simulator-release.a",
"-force_load",
"$(BUILT_PRODUCTS_DIR)/libkernels_portable-simulator-release.a",
"-force_load",
Expand Down Expand Up @@ -1096,6 +1100,8 @@
);
MARKETING_VERSION = 1.0;
"OTHER_LDFLAGS[sdk=iphoneos*]" = (
"-force_load",
"$(BUILT_PRODUCTS_DIR)/libkernels_optimized-ios-debug.a",
"-force_load",
"$(BUILT_PRODUCTS_DIR)/libkernels_portable-ios-debug.a",
"-force_load",
Expand All @@ -1110,6 +1116,8 @@
"$(BUILT_PRODUCTS_DIR)/libbackend_mps-ios-debug.a",
);
"OTHER_LDFLAGS[sdk=iphonesimulator*]" = (
"-force_load",
"$(BUILT_PRODUCTS_DIR)/libkernels_optimized-simulator-debug.a",
"-force_load",
"$(BUILT_PRODUCTS_DIR)/libkernels_portable-simulator-debug.a",
"-force_load",
Expand Down

0 comments on commit 37dbd5d

Please sign in to comment.