blob: 2839a411315064679bed2620a6848529adaa5650 [file] [log] [blame]
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
runtime.cxx_library(
name = "vulkan_backend_lib",
srcs = [
"VulkanBackend.cpp",
],
# VulkanBackend.cpp needs to compile with executor as whole
# @lint-ignore BUCKLINT: Avoid `link_whole=True` (https://fburl.com/avoid-link-whole)
link_whole = True,
visibility = [
"//executorch/backends/...",
"//executorch/extension/pybindings/...",
"//executorch/test/...",
"@EXECUTORCH_CLIENTS",
],
deps = [
"//caffe2:torch_vulkan_graph",
"//executorch/backends/vulkan/serialization/schema:vk_delegate_schema",
"//executorch/runtime/backend:interface",
],
)
runtime.python_library(
name = "vulkan_preprocess",
srcs = [
"serialization/vulkan_graph_schema.py",
"serialization/vulkan_graph_serialize.py",
"vulkan_preprocess.py",
],
resources = {
"//executorch/backends/vulkan/serialization/schema:vk_schema_file": "serialization/schema.fbs",
},
visibility = [
"//executorch/...",
"//executorch/vulkan/...",
],
deps = [
"//executorch/exir:graph_module",
"//executorch/exir/_serialize:_bindings",
"//executorch/exir/_serialize:lib",
"//executorch/exir/backend:backend_details",
],
)