File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,11 @@ buck2 query "//backends/apple/... + //backends/example/... + \
19
19
20
20
UNBUILDABLE_OPTIMIZED_OPS_REGEX=" gelu|fft_r2c|log_softmax"
21
21
BUILDABLE_OPTIMIZED_OPS=$( buck2 query //kernels/optimized/cpu/... | grep -E -v $UNBUILDABLE_OPTIMIZED_OPS_REGEX )
22
+
23
+ BUILDABLE_KERNELS_PRIM_OPS_TARGETS=$( buck2 query //kernels/prim_ops/... | grep -v prim_ops_test_py)
22
24
# TODO: expand the covered scope of Buck targets.
23
25
# //runtime/kernel/... is failing because //third-party:torchgen_files's shell script can't find python on PATH.
24
26
# //runtime/test/... requires Python torch, which we don't have in our OSS buck setup.
25
- buck2 test $BUILDABLE_OPTIMIZED_OPS //kernels/portable/... //runtime/backend/... //runtime/core/... \
27
+ buck2 test $BUILDABLE_OPTIMIZED_OPS //kernels/portable/... \
28
+ $BUILDABLE_KERNELS_PRIM_OPS_TARGETS //runtime/backend/... //runtime/core/... \
26
29
//runtime/executor: //runtime/kernel/... //runtime/platform/...
Original file line number Diff line number Diff line change 1
- load("@fbcode_macros//build_defs:cpp_unittest .bzl", "cpp_unittest ")
1
+ load("@fbsource//xplat/executorch/build:runtime_wrapper .bzl", "runtime ")
2
2
3
3
# Any targets that should be shared between fbcode and xplat must be defined in
4
4
# targets.bzl. This file can contain fbcode-only targets.
@@ -17,7 +17,7 @@ python_unittest(
17
17
],
18
18
)
19
19
20
- cpp_unittest (
20
+ runtime.cxx_test (
21
21
name = "prim_ops_test_cpp",
22
22
srcs = [
23
23
"prim_ops_test.cpp",
@@ -31,6 +31,6 @@ cpp_unittest(
31
31
"//executorch/runtime/kernel:kernel_runtime_context", # @manual
32
32
"//executorch/runtime/kernel:operator_registry",
33
33
"//executorch/runtime/platform:platform",
34
- "//executorch/test/utils:utils_aten ",
34
+ "//executorch/test/utils:utils ",
35
35
],
36
36
)
You can’t perform that action at this time.
0 commit comments