Skip to content

Commit cb80092

Browse files
authored
Add new dependency library for vulkan tests (#10136)
**Background**: We removed the inline flag of the symbol `torch::jit::GetBackendMetaSerialization()` from and moved it to .cpp in order to make the dynamic registration related to PyTorch serialization work properly. However, after testing, it was found that Vulkan's tests depend on the symbol named `torch::jit::GetBackendMetaSerialization()`, so after the above changes, it is necessary to explicitly link libtorch_cpu (which contains the torch::jit::GetBackendMetaSerialization() symbol) For more information, see [PR](pytorch/pytorch#147095), especially this [comment](pytorch/pytorch#147095 (comment)) cc @SS-JIA @manuelcandales @cbilgin
1 parent d60d03e commit cb80092

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backends/vulkan/test/op_tests/targets.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def define_test_targets(test_name, extra_deps = [], src_file = None, is_fbcode =
88
"//third-party/googletest:gtest_main",
99
"//executorch/backends/vulkan:vulkan_graph_runtime",
1010
runtime.external_dep_location("libtorch"),
11+
runtime.external_dep_location("libtorch_cpu"),
1112
] + extra_deps
1213

1314
src_file_str = src_file if src_file else "{}.cpp".format(test_name)

0 commit comments

Comments
 (0)