Skip to content

Commit b25a7c9

Browse files
zonglinpengfacebook-github-bot
authored andcommitted
buckify g3 targets
Summary: update targets in fallback Differential Revision: D66398494
1 parent ffb1b7d commit b25a7c9

File tree

3 files changed

+44
-4
lines changed

3 files changed

+44
-4
lines changed

backends/cadence/aot/functions_fusion_g3.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
- op: _softmax.out
2121
kernels:
2222
- arg_meta: null
23-
kernel_name: cadence::impl::G3::softmax_out
23+
kernel_name: cadence::impl::G3::_softmax_out
2424

2525
- op: add.out
2626
kernels:
@@ -71,7 +71,7 @@
7171
kernels:
7272
- arg_meta: null
7373
kernel_name: cadence::impl::G3::mul_out
74-
74+
7575
- op: mul.Scalar_out
7676
kernels:
7777
- arg_meta: null
@@ -111,8 +111,8 @@
111111
kernels:
112112
- arg_meta: null
113113
kernel_name: torch::executor::where_out
114-
114+
115115
- op: native_layer_norm.out
116116
kernels:
117117
- arg_meta: null
118-
kernel_name: cadence::impl::G3::native_layer_norm_out
118+
kernel_name: cadence::impl::G3::native_layer_norm_out
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
load("targets.bzl", "define_common_targets")
2+
3+
oncall("odai_jarvis")
4+
5+
define_common_targets()
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
load("@fbsource//tools/build_defs:platform_defs.bzl", "CXX")
2+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
3+
4+
def define_common_targets():
5+
"""Defines targets that should be shared between fbcode and xplat.
6+
7+
The directory containing this targets.bzl file should also contain both
8+
TARGETS and BUCK files that call this function.
9+
"""
10+
11+
# Define build targets for all operators registered in the tables above.
12+
13+
runtime.cxx_library(
14+
name = "cadence_g3_ops",
15+
srcs = glob([
16+
"*.cpp",
17+
]),
18+
platforms = CXX,
19+
deps = [
20+
"//executorch/kernels/portable/cpu/util:all_deps",
21+
"//executorch/kernels/portable/cpu/pattern:all_deps",
22+
"//executorch/runtime/kernel:kernel_includes",
23+
"//executorch/kernels/portable/cpu:scalar_utils",
24+
"fbsource//third-party/nnlib-FusionG3/xa_nnlib:libxa_nnlib_common",
25+
"fbsource//third-party/nnlib-FusionG3/xa_nnlib:libxa_nnlib",
26+
],
27+
visibility = [
28+
"//executorch/backends/cadence/...",
29+
"@EXECUTORCH_CLIENTS",
30+
],
31+
exported_deps = [
32+
"fbsource//third-party/nnlib-FusionG3/xa_nnlib:libxa_nnlib_common",
33+
"fbsource//third-party/nnlib-FusionG3/xa_nnlib:libxa_nnlib",
34+
],
35+
)

0 commit comments

Comments
 (0)