alwayslink = True,
)
-# Internal targets below this point.
-
-cc_library(
- name = "common",
- srcs = [
- "defs.cc",
- ],
- hdrs = [
- "defs.h",
- ],
- visibility = [":friends"],
-)
-
cc_library(
name = "xla_device",
srcs = [
"xla_device_context.h",
"xla_device_ops.h",
],
+ # Public visibility is needed for external TF/XLA backends.
+ visibility = ["//visibility:public"],
deps = [
":common",
":jit_compilation_passes",
],
)
+# Internal targets below this point.
+
+cc_library(
+ name = "common",
+ srcs = [
+ "defs.cc",
+ ],
+ hdrs = [
+ "defs.h",
+ ],
+ visibility = [":friends"],
+)
+
cc_library(
name = "xla_compilation_cache",
srcs = ["xla_compilation_cache.cc"],
],
)
+# This target is added purely for the purpose of ensuring that `:xla_device` is
+# always publicly visible to external XLA backend/plugin developers.
+cc_library(
+ name = "plugin_device",
+ deps = [
+ "//tensorflow/compiler/jit:xla_device",
+ ],
+)
+
#-----------------------------------------------------------------------------
filegroup(