Skip to content
Closed
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
59 changes: 56 additions & 3 deletions backends/vulkan/tools/gpuinfo/BUCK
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")
load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup")
load("@fbsource//tools/build_defs:fb_xplat_cxx_binary.bzl", "fb_xplat_cxx_binary")
load(
Expand All @@ -11,7 +12,7 @@ load(

oncall("executorch")

buck_filegroup(
non_fbcode_target(_kind = buck_filegroup,
name = "gpuinfo_shaders",
srcs = glob([
"glsl/*",
Expand All @@ -21,14 +22,14 @@ buck_filegroup(
],
)

vulkan_spv_shader_lib(
non_fbcode_target(_kind = vulkan_spv_shader_lib,
name = "gpuinfo_shader_lib",
spv_filegroups = {
":gpuinfo_shaders": "glsl",
},
)

fb_xplat_cxx_binary(
non_fbcode_target(_kind = fb_xplat_cxx_binary,
name = "vulkan_gpuinfo",
srcs = glob([
"**/*.cpp",
Expand Down Expand Up @@ -56,3 +57,55 @@ fb_xplat_cxx_binary(
"//xplat/folly:json",
],
)

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

load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup")
load("@fbsource//tools/build_defs:fb_xplat_cxx_binary.bzl", "fb_xplat_cxx_binary")
load(
"@fbsource//tools/build_defs:platform_defs.bzl",
"ANDROID",
)
load(
"@fbsource//xplat/executorch/backends/vulkan:targets.bzl",
"vulkan_spv_shader_lib",
)


fbcode_target(_kind = buck_filegroup,
name = "gpuinfo_shaders",
srcs = glob([
"glsl/*",
]),
visibility = [
"PUBLIC",
],
)

fbcode_target(_kind = vulkan_spv_shader_lib,
name = "gpuinfo_shader_lib",
is_fbcode = True,
spv_filegroups = {
":gpuinfo_shaders": "glsl",
},
)

fbcode_target(_kind = fb_xplat_cxx_binary,
name = "vulkan_gpuinfo",
srcs = glob([
"**/*.cpp",
]),
headers = glob([
"**/*.h",
]),
header_namespace = "/include",
include_directories = ["/include"],
platforms = ANDROID,
raw_headers = glob([
"**/*.h",
]),
deps = [
":gpuinfo_shader_lib",
"//executorch/backends/vulkan:vulkan_graph_runtime",
],
)
50 changes: 0 additions & 50 deletions backends/vulkan/tools/gpuinfo/TARGETS

This file was deleted.

43 changes: 41 additions & 2 deletions backends/xnnpack/BUCK
Original file line number Diff line number Diff line change
@@ -1,8 +1,47 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
oncall("executorch")
# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain xplat-only targets.

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

oncall("executorch")

define_common_targets()
non_fbcode_target(_kind = define_common_targets,)

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

load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load(":targets.bzl", "define_common_targets")


fbcode_target(_kind = define_common_targets,)

fbcode_target(_kind = runtime.python_library,
name = "xnnpack_preprocess",
srcs = [
"xnnpack_preprocess.py",
],
visibility = ["PUBLIC"],
deps = [
"//executorch/backends/transforms:lib",
"//executorch/backends/transforms:remove_getitem_op",
"//executorch/backends/xnnpack/_passes:xnnpack_passes",
"//executorch/backends/xnnpack/operators:operators",
"//executorch/backends/xnnpack/serialization:xnnpack_serializer",
"//executorch/exir:graph_module",
"//executorch/exir/backend:backend_details",
],
)

fbcode_target(_kind = runtime.python_library,
name = "xnnpack_delegate",
srcs = [
"__init__.py",
],
visibility = ["PUBLIC"],
deps = [
":xnnpack_preprocess",
"//executorch/backends/xnnpack/partition:xnnpack_partitioner",
"//executorch/backends/xnnpack/utils:xnnpack_utils",
],
)
36 changes: 0 additions & 36 deletions backends/xnnpack/TARGETS

This file was deleted.

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 = "xnnpack_passes",
srcs = native.glob(["*.py"]),
deps = [
Expand Down
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 = "operators",
srcs = glob(["*.py"]),
visibility = ["PUBLIC"],
Expand Down
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 = "xnnpack_partitioner",
srcs = [
"xnnpack_partitioner.py",
Expand All @@ -20,7 +21,7 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(_kind = runtime.python_library,
name = "partitioner_graphs",
srcs = glob([
"graphs/*.py",
Expand Down
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 = "xnnpack_partitioner_configs",
srcs = glob([
"*.py",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

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

runtime.python_library(
fbcode_target(_kind = runtime.python_library,
name = "xnnpack_quantizer_utils",
srcs = ["xnnpack_quantizer_utils.py"],
deps = [
Expand Down
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 = "xnnpack_recipes",
srcs = [
"__init__.py",
Expand All @@ -15,7 +16,7 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(_kind = runtime.python_library,
name = "xnnpack_recipe_provider",
srcs = [
"xnnpack_recipe_provider.py",
Expand All @@ -31,7 +32,7 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(_kind = runtime.python_library,
name = "xnnpack_recipe_types",
srcs = [
"xnnpack_recipe_types.py",
Expand Down
35 changes: 34 additions & 1 deletion backends/xnnpack/serialization/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load(":targets.bzl", "define_common_targets")

define_common_targets()
oncall("executorch")
non_fbcode_target(_kind = define_common_targets,)

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

load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load(":targets.bzl", "define_common_targets")


fbcode_target(_kind = define_common_targets,)

fbcode_target(_kind = runtime.python_library,
name = "xnnpack_schema",
srcs = [
"xnnpack_graph_schema.py",
],
visibility = ["PUBLIC"],
)

fbcode_target(_kind = runtime.python_library,
name = "xnnpack_serializer",
srcs = [
"xnnpack_graph_serialize.py",
],
resources = [
"schema.fbs",
],
visibility = ["PUBLIC"],
deps = [
":xnnpack_schema",
"//executorch/exir/_serialize:lib",
],
)
29 changes: 0 additions & 29 deletions backends/xnnpack/serialization/TARGETS

This file was deleted.

Loading
Loading