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
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")
Comment on lines +14 to +23

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",
],
)
Comment on lines +22 to +37

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 @@ -67,7 +68,7 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(_kind = runtime.python_library,
name = "triton_replacement_pass",
srcs = [
"triton/__init__.py",
Expand Down
9 changes: 5 additions & 4 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 = "cuda_platform",
srcs = [
"platform/platform.cpp",
Expand All @@ -27,7 +28,7 @@ runtime.cxx_library(
],
)

runtime.cxx_library(
fbcode_target(_kind = runtime.cxx_library,
name = "runtime_shims",
srcs = [
"shims/cuda_guard.cpp",
Expand Down Expand Up @@ -74,7 +75,7 @@ runtime.cxx_library(
],
)

runtime.cxx_library(
fbcode_target(_kind = runtime.cxx_library,
name = "cuda_backend",
srcs = [
"cuda_backend.cpp",
Expand Down
7 changes: 7 additions & 0 deletions backends/cuda/runtime/shims/tests/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest")
load(":targets.bzl", "define_common_targets")

oncall("executorch")

fbcode_target(_kind = define_common_targets,)
6 changes: 0 additions & 6 deletions backends/cuda/runtime/shims/tests/TARGETS

This file was deleted.

Loading