| 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:backend_registry", |
| ], |
| ) |
| |
| 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/backends:backend_details", |
| "//executorch/exir:graph_module", |
| "//executorch/exir/serialize:bindings", |
| "//executorch/exir/serialize:lib", |
| ], |
| ) |