Skip to content

Commit b3abd73

Browse files
FbsourceTargetsToBuck Botmeta-codesync[bot]
authored andcommitted
Rename build files from TARGETS to BUCK (group ID: -3631139791766519999) (#19429)
Summary: Pull Request resolved: #19429 Reviewed By: bigfootjon Differential Revision: D104414855
1 parent 4413a5c commit b3abd73

6 files changed

Lines changed: 48 additions & 42 deletions

File tree

backends/cortex_m/test/BUCK

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
oncall("executorch")
13
# Copyright (c) Meta Platforms, Inc. and affiliates.
24
# All rights reserved.
35
#
@@ -6,6 +8,32 @@
68

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

9-
oncall("executorch")
1011

11-
define_common_targets()
12+
non_fbcode_target(_kind = define_common_targets,)
13+
14+
# !!!! fbcode/executorch/backends/cortex_m/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
15+
16+
# Copyright (c) Meta Platforms, Inc. and affiliates.
17+
# All rights reserved.
18+
#
19+
# This source code is licensed under the BSD-style license found in the
20+
# LICENSE file in the root directory of this source tree.
21+
22+
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
23+
load("targets.bzl", "define_common_targets")
24+
25+
fbcode_target(_kind = python_unittest,
26+
name="test_replace_quant_nodes",
27+
srcs=[
28+
"test_helpers_passes_utils.py",
29+
"test_replace_quant_nodes.py",
30+
],
31+
deps=[
32+
"//pytorch/ao:torchao", # @manual
33+
"//caffe2:torch",
34+
"//executorch/backends/cortex_m/passes:replace_quant_nodes_pass",
35+
"//executorch/backends/cortex_m/ops:ops",
36+
],
37+
)
38+
39+
fbcode_target(_kind = define_common_targets,)

backends/cortex_m/test/TARGETS

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
23

34
oncall("executorch")
45

5-
runtime.python_library(
6+
fbcode_target(_kind = runtime.python_library,
67
name = "cuda_passes",
78
srcs = [
89
"passes/__init__.py",
@@ -16,7 +17,7 @@ runtime.python_library(
1617
],
1718
)
1819

19-
runtime.python_library(
20+
fbcode_target(_kind = runtime.python_library,
2021
name = "cuda_backend",
2122
srcs = [
2223
"cuda_backend.py",
@@ -36,7 +37,7 @@ runtime.python_library(
3637
],
3738
)
3839

39-
runtime.python_library(
40+
fbcode_target(_kind = runtime.python_library,
4041
name = "cuda_partitioner",
4142
srcs = [
4243
"cuda_partitioner.py",
@@ -50,7 +51,7 @@ runtime.python_library(
5051
],
5152
)
5253

53-
runtime.python_library(
54+
fbcode_target(_kind = runtime.python_library,
5455
name = "triton_kernels",
5556
srcs = [
5657
"triton/kernels/__init__.py",
@@ -67,7 +68,7 @@ runtime.python_library(
6768
],
6869
)
6970

70-
runtime.python_library(
71+
fbcode_target(_kind = runtime.python_library,
7172
name = "triton_replacement_pass",
7273
srcs = [
7374
"triton/__init__.py",
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
2-
load("//tools/build/buck:nvcc_flags.bzl", "get_nvcc_arch_args")
3+
load("@fbcode//tools/build/buck:nvcc_flags.bzl", "get_nvcc_arch_args")
34

45
oncall("executorch")
56

6-
runtime.cxx_library(
7+
fbcode_target(_kind = runtime.cxx_library,
78
name = "cuda_platform",
89
srcs = [
910
"platform/platform.cpp",
@@ -27,7 +28,7 @@ runtime.cxx_library(
2728
],
2829
)
2930

30-
runtime.cxx_library(
31+
fbcode_target(_kind = runtime.cxx_library,
3132
name = "runtime_shims",
3233
srcs = [
3334
"shims/cuda_guard.cpp",
@@ -74,7 +75,7 @@ runtime.cxx_library(
7475
],
7576
)
7677

77-
runtime.cxx_library(
78+
fbcode_target(_kind = runtime.cxx_library,
7879
name = "cuda_backend",
7980
srcs = [
8081
"cuda_backend.cpp",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest")
3+
load(":targets.bzl", "define_common_targets")
4+
5+
oncall("executorch")
6+
7+
fbcode_target(_kind = define_common_targets,)

backends/cuda/runtime/shims/tests/TARGETS

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

0 commit comments

Comments
 (0)