Skip to content

Commit cae3043

Browse files
zonglinpengfacebook-github-bot
authored andcommitted
resolve XT_KERNEL_CHECK header file and BUCK dep
Summary: Apply buck fix to Cadence's diff. Also resolved duplicate work internally Differential Revision: D67875050
1 parent 200c48a commit cae3043

File tree

3 files changed

+7
-25
lines changed

3 files changed

+7
-25
lines changed

backends/cadence/fusion_g3/operators/targets.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def define_operator(name: str, deps: list[str] | None = None) -> None:
2727
deps = deps + common_deps,
2828
exported_deps = [
2929
":operators_header",
30-
":xt_macros",
30+
":tensor_util",
3131
],
3232
)
3333

@@ -69,8 +69,8 @@ def define_common_targets():
6969
)
7070

7171
runtime.cxx_library(
72-
name = "xt_macros",
73-
exported_headers = ["xt_macros.h"],
72+
name = "tensor_util",
73+
exported_headers = ["tensor_util.h"],
7474
visibility = [
7575
"//executorch/backends/cadence/...",
7676
],

backends/cadence/fusion_g3/operators/tensor_util.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88

99

1010
#pragma once
11-
11+
12+
#include <executorch/runtime/core/exec_aten/util/tensor_util.h>
13+
1214
#define XT_KERNEL_CHECK(ctx, out, kernel, ...) \
1315
const auto ret = kernel(__VA_ARGS__); \
1416
ET_KERNEL_CHECK_MSG( \
1517
ctx, \
1618
ret == 0, \
1719
InvalidArgument, \
1820
out, \
19-
"Failed to run kernel: " #kernel "(" #__VA_ARGS__ ")");
21+
"Failed to run kernel: " #kernel "(" #__VA_ARGS__ ")");

backends/cadence/fusion_g3/operators/xt_macros.h

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)