[TF:JIT] Make :xla_device visible to public, which is necessary for 3rd party
to use XLA. Also add a build target to tf/compiler/plugin/BUILD that depends on :xla_device to help ensure it stays visible to public. PiperOrigin-RevId: 182410844
This commit is contained in:
parent
32827caf64
commit
cfaaace259
@ -110,19 +110,6 @@ cc_library(
|
||||
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 = [
|
||||
@ -135,6 +122,8 @@ cc_library(
|
||||
"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",
|
||||
@ -164,6 +153,19 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
# 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"],
|
||||
|
@ -41,6 +41,15 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
# 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(
|
||||
|
Loading…
Reference in New Issue
Block a user