Skip to content

Commit 21ef4cc

Browse files
committed
[Executorch] Make apple take accelerate path for blas
Pull Request resolved: #6523 For some reason fbobjc_exported_preprocessor_flags does not seems to work. Thus taking 'select' route which seems to work. ghstack-source-id: 250898892 @exported-using-ghexport Differential Revision: [D64499608](https://our.internmc.facebook.com/intern/diff/D64499608/)
1 parent f41902f commit 21ef4cc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

kernels/optimized/lib_defs.bzl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ def define_libs():
135135
":linux-x86_64": [
136136
"-DET_BUILD_WITH_BLAS",
137137
] if not runtime.is_oss else [],
138+
"ovr_config//os:iphoneos": [
139+
"-DET_BUILD_WITH_BLAS",
140+
"-DET_BUILD_FOR_APPLE",
141+
] if not runtime.is_oss else [],
142+
"ovr_config//os:macos-arm64": [
143+
"-DET_BUILD_WITH_BLAS",
144+
"-DET_BUILD_FOR_APPLE",
145+
] if not runtime.is_oss else [],
146+
"ovr_config//os:macos-x86_64": [
147+
"-DET_BUILD_WITH_BLAS",
148+
"-DET_BUILD_FOR_APPLE",
149+
] if not runtime.is_oss else [],
138150
"DEFAULT": [],
139151
}),
140152
fbandroid_platform_preprocessor_flags = [

0 commit comments

Comments
 (0)