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
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
Expand All @@ -8,7 +9,7 @@ load("@fbcode_macros//build_defs:python_library.bzl", "python_library")

oncall("executorch")

python_library(
fbcode_target(_kind = python_library,
name = "quantizer",
srcs = [
"__init__.py",
Expand All @@ -23,7 +24,7 @@ python_library(
],
)

python_library(
fbcode_target(_kind = python_library,
name = "quantization_configs",
srcs = [
"quantization_configs.py",
Expand Down
32 changes: 30 additions & 2 deletions backends/cortex_m/test/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
oncall("executorch")
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
Expand All @@ -6,6 +8,32 @@

load("targets.bzl", "define_common_targets")

oncall("executorch")

define_common_targets()
non_fbcode_target(_kind = define_common_targets,)

# !!!! fbcode/executorch/backends/cortex_m/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!

# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
load("targets.bzl", "define_common_targets")

fbcode_target(_kind = python_unittest,
name="test_replace_quant_nodes",
srcs=[
"test_helpers_passes_utils.py",
"test_replace_quant_nodes.py",
],
deps=[
"//pytorch/ao:torchao", # @manual
"//caffe2:torch",
"//executorch/backends/cortex_m/passes:replace_quant_nodes_pass",
"//executorch/backends/cortex_m/ops:ops",
],
)

fbcode_target(_kind = define_common_targets,)
25 changes: 0 additions & 25 deletions backends/cortex_m/test/TARGETS

This file was deleted.

11 changes: 6 additions & 5 deletions backends/cuda/TARGETS → backends/cuda/BUCK
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

oncall("executorch")

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

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

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

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

runtime.python_library(
fbcode_target(_kind = runtime.python_library,
name = "triton_replacement_pass",
srcs = [
"triton/__init__.py",
Expand Down
15 changes: 8 additions & 7 deletions backends/cuda/runtime/TARGETS → backends/cuda/runtime/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load("//tools/build/buck:nvcc_flags.bzl", "get_nvcc_arch_args")
load("@fbcode//tools/build/buck:nvcc_flags.bzl", "get_nvcc_arch_args")

oncall("executorch")

runtime.cxx_library(
fbcode_target(_kind = runtime.cxx_library,
name = "guard",
srcs = [
"guard.cpp",
Expand All @@ -25,7 +26,7 @@ runtime.cxx_library(
],
)

runtime.cxx_library(
fbcode_target(_kind = runtime.cxx_library,
name = "cuda_platform",
srcs = [
"platform/platform.cpp",
Expand All @@ -49,7 +50,7 @@ runtime.cxx_library(
],
)

runtime.cxx_library(
fbcode_target(_kind = runtime.cxx_library,
name = "tensor_maker",
srcs = [
"tensor/tensor_maker.cpp",
Expand All @@ -68,7 +69,7 @@ runtime.cxx_library(
],
)

runtime.cxx_library(
fbcode_target(_kind = runtime.cxx_library,
name = "runtime_shims",
srcs = [
"guard.cpp",
Expand Down Expand Up @@ -109,7 +110,7 @@ runtime.cxx_library(
],
)

runtime.cxx_library(
fbcode_target(_kind = runtime.cxx_library,
name = "runtime_shims_slim",
srcs = [
"shims/memory_slim.cpp",
Expand Down Expand Up @@ -139,7 +140,7 @@ runtime.cxx_library(
],
)

runtime.cxx_library(
fbcode_target(_kind = runtime.cxx_library,
name = "cuda_backend",
srcs = [
"cuda_backend.cpp",
Expand Down
Loading