mirror of
https://github.com/google-ai-edge/LiteRT.git
synced 2026-01-09 06:21:22 +08:00
Integrate the refactored litert_plugin_compiler in-place of compiler_api_wrapper artifacts.
LiteRT-PiperOrigin-RevId: 853489248
This commit is contained in:
parent
ace5318762
commit
08276903a2
@ -107,7 +107,7 @@ litert_bin(
|
||||
"@platforms//os:windows": [],
|
||||
"//conditions:default": [
|
||||
# copybara:uncomment_begin(google-only)
|
||||
# "//platforms/darwinn/compiler:compiler_api_wrapper",
|
||||
# "//platforms/darwinn/compiler/external:litert_plugin_compiler",
|
||||
# copybara:uncomment_end
|
||||
"//litert/vendors/google_tensor/compiler:google_tensor_compiler_plugin_so",
|
||||
"//litert/vendors/mediatek/compiler:compiler_plugin_so",
|
||||
@ -164,7 +164,7 @@ litert_bin(
|
||||
srcs = ["apply_plugin_main.cc"],
|
||||
data = [
|
||||
# copybara:uncomment_begin(google-only)
|
||||
# "//platforms/darwinn/compiler:compiler_api_wrapper",
|
||||
# "//platforms/darwinn/compiler/external:litert_plugin_compiler",
|
||||
# copybara:uncomment_end
|
||||
"//litert/vendors/google_tensor/compiler:google_tensor_compiler_plugin_so",
|
||||
],
|
||||
|
||||
8
litert/vendors/google_tensor/BUILD
vendored
8
litert/vendors/google_tensor/BUILD
vendored
@ -32,18 +32,18 @@ litert_lib(
|
||||
hdrs = ["adapter.h"],
|
||||
data = [
|
||||
# copybara:uncomment_begin(google-only)
|
||||
# "//platforms/darwinn/compiler:compiler_api_wrapper",
|
||||
# "//platforms/darwinn/compiler/external:litert_plugin_compiler",
|
||||
# copybara:uncomment_end
|
||||
],
|
||||
defines = ["LITERT_GOOGLE_TENSOR_AOT=1"],
|
||||
linkopts = [
|
||||
# TODO(abhirs): Make this work for OS.
|
||||
#copybara:comment_begin(google-only)
|
||||
make_rpaths(["platforms/darwinn/compiler"]),
|
||||
make_rpaths(["platforms/darwinn/compiler/external"]),
|
||||
# copybara:uncomment_end
|
||||
],
|
||||
tags = [
|
||||
# Don't build/test in OS until libcompiler_api_wrapper.so is available.
|
||||
# Don't build/test in OS until liblitert_plugin_compiler.so is available.
|
||||
"nobuilder",
|
||||
"no_oss",
|
||||
],
|
||||
@ -133,7 +133,7 @@ cc_test(
|
||||
# Tests with ungrte deps do not currently work on forge.
|
||||
"no-remote-exec",
|
||||
"notap",
|
||||
#Don't build/test in OS until libcompiler_api_wrapper.so is available.
|
||||
#Don't build/test in OS until liblitert_plugin_compiler.so is available.
|
||||
"nobuilder",
|
||||
"no_oss",
|
||||
# Sanitizer runtime doesn't work with anything that uses dlopen.
|
||||
|
||||
2
litert/vendors/google_tensor/adapter_aot.cc
vendored
2
litert/vendors/google_tensor/adapter_aot.cc
vendored
@ -55,7 +55,7 @@ litert::Expected<Adapter::Ptr> Adapter::Create(
|
||||
|
||||
litert::Expected<void> AdapterAot::LoadSymbols(
|
||||
std::optional<std::string> shared_library_dir) {
|
||||
constexpr auto kLibTensorTPUCompiler = "libcompiler_api_wrapper.so";
|
||||
constexpr auto kLibTensorTPUCompiler = "liblitert_plugin_compiler.so";
|
||||
|
||||
const std::vector<std::string> so_paths = {
|
||||
shared_library_dir.has_value()
|
||||
|
||||
2
litert/vendors/google_tensor/adapter_test.cc
vendored
2
litert/vendors/google_tensor/adapter_test.cc
vendored
@ -52,7 +52,7 @@ TEST(AdapterTest, CreateSuccess) {
|
||||
}
|
||||
|
||||
TEST(AdapterTest, CreateFailure) {
|
||||
auto kLibDarwinnCompilerNoLib = "libcompiler_api_wrapper_no_lib.so";
|
||||
auto kLibDarwinnCompilerNoLib = "liblitert_plugin_compiler_no_lib.so";
|
||||
auto adapter_result = Adapter::Create(kLibDarwinnCompilerNoLib);
|
||||
ASSERT_FALSE(adapter_result.HasValue());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user