Skip to content

Commit 37c079c

Browse files
committed
[Executorch] Make apple take accelerate path for blas
For some reason fbobjc_exported_preprocessor_flags does not seems to work. Thus taking 'select' route which seems to work. Differential Revision: [D64499608](https://our.internmc.facebook.com/intern/diff/D64499608/) [ghstack-poisoned]
1 parent 762f0aa commit 37c079c

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
@@ -131,6 +131,18 @@ def define_libs():
131131
":linux-x86_64": [
132132
"-DET_BUILD_WITH_BLAS",
133133
] if not runtime.is_oss else [],
134+
"ovr_config//os:iphoneos": [
135+
"-DET_BUILD_WITH_BLAS",
136+
"-DET_BUILD_FOR_APPLE",
137+
] if not runtime.is_oss else [],
138+
"ovr_config//os:macos-arm64": [
139+
"-DET_BUILD_WITH_BLAS",
140+
"-DET_BUILD_FOR_APPLE",
141+
] if not runtime.is_oss else [],
142+
"ovr_config//os:macos-x86_64": [
143+
"-DET_BUILD_WITH_BLAS",
144+
"-DET_BUILD_FOR_APPLE",
145+
] if not runtime.is_oss else [],
134146
"DEFAULT": [],
135147
}),
136148
fbandroid_platform_preprocessor_flags = [

0 commit comments

Comments
 (0)