Skip to content

Commit 3a1538a

Browse files
[Executorch][Portable] Compile portable ops with -O2 (#6588)
Pull Request resolved: #6519 prefill toks: 21 decode: 11 after: e2e 621ms, prefil:: 370ms, decode: 43.84 tok/sec ghstack-source-id: 251021625 @exported-using-ghexport Differential Revision: [D64910578](https://our.internmc.facebook.com/intern/diff/D64910578/) --------- Co-authored-by: Kimish Patel <[email protected]>
1 parent b84d922 commit 3a1538a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shim/xplat/executorch/kernels/portable/op_registration_util.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def define_op_library(name, deps, android_deps, aten_target, _allow_third_party_
150150
# library, and it blocks users like unit tests to use kernel
151151
# implementation directly. So we enable this for xplat only.
152152
["-fvisibility=hidden"] if is_xplat() else []
153-
),
153+
) + get_compiler_optimization_flags(),
154154
deps = [
155155
"//executorch/runtime/kernel:kernel_includes" + aten_suffix,
156156
] + deps,

0 commit comments

Comments
 (0)