Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions backends/aoti/passes/TARGETS → backends/aoti/passes/BUCK
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

oncall("executorch")

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "passes",
srcs = [
"replace_view_copy_with_view.py",
"replace_view_copy_with_view.py",
],
visibility = [
"//executorch/...",
Expand Down
37 changes: 25 additions & 12 deletions backends/arm/TARGETS → backends/arm/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
# LICENSE file in the root directory of this source tree.

# @noautodeps
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "constants",
srcs = [
"constants.py",
Expand All @@ -15,7 +17,8 @@ runtime.python_library(
"//executorch/exir/dialects:lib",
],
)
runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "ao_ext",
srcs = glob([
"ao_ext/*.py",
Expand All @@ -28,7 +31,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "lib",
srcs = [
"__init__.py",
Expand All @@ -40,7 +44,8 @@ runtime.python_library(
"//executorch/backends/arm/quantizer:lib",
],
)
runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "common",
srcs = glob(["common/*.py"]),
deps = [
Expand All @@ -50,7 +55,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "arm_compile_spec",
srcs = [
"common/arm_compile_spec.py",
Expand All @@ -67,7 +73,8 @@ runtime.python_library(
"//executorch/backends/arm/_passes:passes",
],
)
runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "ethosu",
srcs = [
"ethosu/__init__.py",
Expand All @@ -83,7 +90,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "vgf",
srcs = [
"vgf/__init__.py",
Expand Down Expand Up @@ -119,7 +127,8 @@ runtime.python_library(
"//executorch/exir:lib",
],
)
runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "public_api",
srcs = ["__init__.py"],
deps = [
Expand All @@ -129,7 +138,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "process_node",
srcs = ["process_node.py"],
deps = [
Expand All @@ -141,7 +151,8 @@ runtime.python_library(
"//executorch/exir:lib",
],
)
runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "arm_vela",
srcs = [
"arm_vela.py",
Expand All @@ -150,7 +161,8 @@ runtime.python_library(
"fbsource//third-party/pypi/ethos-u-vela:ethos-u-vela",
],
)
runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "arm_model_evaluator",
srcs = [
"util/arm_model_evaluator.py",
Expand All @@ -159,7 +171,8 @@ runtime.python_library(
"//caffe2:torch",
]
)
runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "_factory",
srcs = [
"util/_factory.py"
Expand Down
13 changes: 9 additions & 4 deletions backends/arm/_passes/TARGETS → backends/arm/_passes/BUCK
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "core",
srcs = [
"arm_pass.py",
Expand All @@ -17,7 +19,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "arm_pass_manager_base",
srcs = ["arm_pass_manager.py"],
deps = [
Expand All @@ -32,7 +35,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "arm_pass_manager_fb",
srcs = [],
deps = [
Expand All @@ -41,7 +45,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "passes",
srcs = glob(["*.py"], exclude = [
"arm_pass.py",
Expand Down
4 changes: 3 additions & 1 deletion backends/arm/debug/TARGETS → backends/arm/debug/BUCK
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# @noautodeps
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "schema",
srcs = [
"__init__.py",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "operator_support",
srcs = glob(["*.py"]),
deps = [
Expand Down
13 changes: 9 additions & 4 deletions backends/arm/operators/TARGETS → backends/arm/operators/BUCK
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# @noautodeps
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "node_visitor",
srcs = [
"node_visitor.py",
Expand All @@ -15,12 +17,14 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "operator_validation_utils",
srcs = ["operator_validation_utils.py"],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "ops",
srcs = glob(["op_*.py", "ops_*.py"]),
deps = [
Expand All @@ -34,7 +38,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "lib",
srcs = ["__init__.py"],
deps = [
Expand Down
19 changes: 13 additions & 6 deletions backends/arm/quantizer/TARGETS → backends/arm/quantizer/BUCK
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

# Exposed through __init__.py
runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "quantization_config",
srcs = ["quantization_config.py"],
deps = [
Expand All @@ -10,7 +12,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "arm_quantizer",
srcs = ["arm_quantizer.py"],
deps = [
Expand All @@ -29,7 +32,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "quantization_annotator",
srcs = ["quantization_annotator.py"],
deps = [
Expand All @@ -40,7 +44,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "arm_quantizer_utils",
srcs = ["arm_quantizer_utils.py"],
deps = [
Expand All @@ -52,7 +57,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "quantizer_support",
srcs = ["quantizer_support.py"],
deps = [
Expand All @@ -62,7 +68,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "lib",
srcs = ["__init__.py"],
deps = [
Expand Down
19 changes: 13 additions & 6 deletions backends/cuda/TARGETS → backends/cuda/BUCK
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

oncall("executorch")

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "int4_dispatch",
srcs = [
"int4_dispatch.py",
Expand All @@ -16,7 +18,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "cuda_passes",
srcs = [
"passes/__init__.py",
Expand All @@ -32,7 +35,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "cuda_backend",
srcs = [
"cuda_backend.py",
Expand All @@ -52,7 +56,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "cuda_partitioner",
srcs = [
"cuda_partitioner.py",
Expand All @@ -66,7 +71,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "triton_kernels",
srcs = [
"triton/kernels/__init__.py",
Expand All @@ -83,7 +89,8 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "triton_replacement_pass",
srcs = [
"triton/__init__.py",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "quantizer",
srcs = [
"__init__.py",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "utils",
srcs = ["utils.py"],
deps = [
Expand All @@ -11,7 +13,8 @@ runtime.python_library(
]
)

runtime.python_library(
fbcode_target(
_kind = runtime.python_library,
name = "qnn_intermediate_debugger",
srcs = [
"format_outputs.py",
Expand Down
Loading
Loading