[BUILD] Clean up unused aliases left over the "common_runtime/BUILD" split.

PiperOrigin-RevId: 304650362
Change-Id: Ifc27d8d87d7c7319462235f661668467494dd252
This commit is contained in:
Derek Murray 2020-04-03 10:57:19 -07:00 committed by TensorFlower Gardener
parent 03b74b7a2d
commit 7f09d08f5d
13 changed files with 42 additions and 122 deletions

View File

@ -639,7 +639,7 @@ tf_cc_shared_object(
"//tensorflow/cc/saved_model:loader_lite_impl", "//tensorflow/cc/saved_model:loader_lite_impl",
"//tensorflow/core:core_cpu_impl", "//tensorflow/core:core_cpu_impl",
"//tensorflow/core:framework_internal_impl", "//tensorflow/core:framework_internal_impl",
"//tensorflow/core:gpu_runtime_impl", "//tensorflow/core/common_runtime/gpu:gpu_runtime_impl",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer_registry_impl", "//tensorflow/core/grappler/optimizers:custom_graph_optimizer_registry_impl",
"//tensorflow/core:lib_internal_impl", "//tensorflow/core:lib_internal_impl",
"//tensorflow/core/profiler:profiler_impl", "//tensorflow/core/profiler:profiler_impl",

View File

@ -118,8 +118,8 @@ cc_library(
"//tensorflow/compiler/tf2xla/kernels:xla_ops", "//tensorflow/compiler/tf2xla/kernels:xla_ops",
"//tensorflow/compiler/xla/service:gpu_plugin", # buildcleaner: keep "//tensorflow/compiler/xla/service:gpu_plugin", # buildcleaner: keep
"//tensorflow/core:core_cpu_internal", "//tensorflow/core:core_cpu_internal",
"//tensorflow/core:gpu_init",
"//tensorflow/core:lib", "//tensorflow/core:lib",
"//tensorflow/core/common_runtime/gpu:gpu_init",
"@com_google_absl//absl/memory", "@com_google_absl//absl/memory",
"@com_google_absl//absl/strings", "@com_google_absl//absl/strings",
], ],

View File

@ -68,7 +68,7 @@ tf_cuda_cc_test(
"nomac", "nomac",
], ],
deps = [ deps = [
"//tensorflow/core:gpu_init", "//tensorflow/core/common_runtime/gpu:gpu_init",
"//tensorflow/core:lib", "//tensorflow/core:lib",
"//tensorflow/core:stream_executor", "//tensorflow/core:stream_executor",
"//tensorflow/core:test", "//tensorflow/core:test",
@ -97,7 +97,6 @@ cc_library(
"@com_google_absl//absl/memory", "@com_google_absl//absl/memory",
"@com_google_absl//absl/strings", "@com_google_absl//absl/strings",
"@local_config_cuda//cuda:cuda_headers", "@local_config_cuda//cuda:cuda_headers",
"//tensorflow/core:core_cpu_lib_no_ops",
"//tensorflow/core:framework", "//tensorflow/core:framework",
"//tensorflow/core:gpu_headers_lib", "//tensorflow/core:gpu_headers_lib",
"//tensorflow/core:lib", "//tensorflow/core:lib",
@ -105,6 +104,7 @@ cc_library(
"//tensorflow/core:lib_proto_parsing", "//tensorflow/core:lib_proto_parsing",
"//tensorflow/core:stream_executor", "//tensorflow/core:stream_executor",
"//tensorflow/core:stream_executor_headers_lib", "//tensorflow/core:stream_executor_headers_lib",
"//tensorflow/core/common_runtime:core_cpu_lib_no_ops",
"//tensorflow/core/grappler/costs:graph_properties", "//tensorflow/core/grappler/costs:graph_properties",
"//tensorflow/stream_executor/lib", "//tensorflow/stream_executor/lib",
] + if_tensorrt([":tensorrt_lib"]) + tf_custom_op_library_additional_deps(), ] + if_tensorrt([":tensorrt_lib"]) + tf_custom_op_library_additional_deps(),

View File

@ -1590,13 +1590,6 @@ alias(
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )
alias(
name = "rocm",
actual =
"//tensorflow/core/common_runtime/gpu:rocm",
visibility = ["//visibility:public"],
)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Clif-related proto libraries. # Clif-related proto libraries.
@ -2251,14 +2244,6 @@ cc_header_only_library(
], ],
) )
cc_header_only_library(
name = "core_cpu_headers_lib",
visibility = ["//visibility:public"],
deps = [
":core_cpu_lib",
],
)
tf_cuda_library( tf_cuda_library(
name = "framework_internal_impl", name = "framework_internal_impl",
srcs = [ srcs = [
@ -2420,7 +2405,7 @@ tf_cuda_library(
"//tensorflow/core/public:session.h", "//tensorflow/core/public:session.h",
], ],
copts = tf_copts(), copts = tf_copts(),
deps = [":core_cpu_base_no_ops"] + if_static([ deps = ["//tensorflow/core/common_runtime:core_cpu_base_no_ops"] + if_static([
":function_ops_op_lib", ":function_ops_op_lib",
":functional_grad", ":functional_grad",
":functional_ops_op_lib", ":functional_ops_op_lib",
@ -2430,19 +2415,6 @@ tf_cuda_library(
alwayslink = 1, alwayslink = 1,
) )
alias(
name = "core_cpu_base_no_ops",
actual =
"//tensorflow/core/common_runtime:core_cpu_base_no_ops",
)
filegroup(
name = "core_cpu_lib_headers",
srcs = [
"//tensorflow/core/common_runtime:core_cpu_lib_headers",
],
)
alias( alias(
name = "core_cpu_impl", name = "core_cpu_impl",
actual = actual =
@ -2455,36 +2427,12 @@ alias(
"//tensorflow/core/common_runtime:core_cpu_lib", "//tensorflow/core/common_runtime:core_cpu_lib",
) )
alias(
name = "core_cpu_lib_no_ops",
actual =
"//tensorflow/core/common_runtime:core_cpu_lib_no_ops",
)
alias( alias(
name = "core_cpu_internal", name = "core_cpu_internal",
actual = actual =
"//tensorflow/core/common_runtime:core_cpu_internal", "//tensorflow/core/common_runtime:core_cpu_internal",
) )
# This is redundant with the "core_cpu_*" targets above. It's useful for
# applications that want to depend on a minimal subset of TensorFlow (e.g. XLA).
cc_library(
name = "bfc_allocator",
visibility = ["//visibility:public"],
deps = [
"//tensorflow/core/common_runtime:bfc_allocator",
],
)
cc_library(
name = "shared_counter",
visibility = ["//visibility:public"],
deps = [
"//tensorflow/core/common_runtime:shared_counter",
],
)
alias( alias(
name = "regexp_internal", name = "regexp_internal",
actual = actual =
@ -2521,49 +2469,12 @@ tf_proto_library_cc(
], ],
) )
alias(
name = "gpu_id",
actual = "//tensorflow/core/common_runtime/gpu:gpu_id",
)
alias(
name = "gpu_runtime_impl",
actual = "//tensorflow/core/common_runtime/gpu:gpu_runtime_impl",
)
alias( alias(
name = "gpu_runtime", name = "gpu_runtime",
actual = actual =
"//tensorflow/core/common_runtime/gpu:gpu_runtime", "//tensorflow/core/common_runtime/gpu:gpu_runtime",
) )
# This is redundant with the "gpu_runtime_*" targets above. It's useful for
# applications that want to depend on a minimal subset of TensorFlow (e.g. XLA).
alias(
name = "gpu_bfc_allocator",
actual =
"//tensorflow/core/common_runtime/gpu:gpu_bfc_allocator",
visibility = ["//visibility:public"],
)
alias(
name = "gpu_mem_allocator",
actual =
"//tensorflow/core/common_runtime/gpu:gpu_mem_allocator",
visibility = ["//visibility:public"],
)
alias(
name = "gpu_init",
actual =
"//tensorflow/core/common_runtime/gpu:gpu_init",
)
alias(
name = "sycl_runtime",
actual = "//tensorflow/core/common_runtime/sycl:sycl_runtime",
)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Tests # Tests

View File

@ -1,5 +1,6 @@
load( load(
"//tensorflow:tensorflow.bzl", "//tensorflow:tensorflow.bzl",
"cc_header_only_library",
"tf_cc_test", "tf_cc_test",
"tf_cc_test_mkl", "tf_cc_test_mkl",
"tf_cc_tests", "tf_cc_tests",
@ -68,6 +69,14 @@ tf_cuda_library(
], ],
) )
cc_header_only_library(
name = "core_cpu_headers_lib",
visibility = ["//visibility:public"],
deps = [
":core_cpu_lib",
],
)
cc_library( cc_library(
name = "core", name = "core",
visibility = ["//visibility:public"], visibility = ["//visibility:public"],

View File

@ -71,7 +71,7 @@ tf_cuda_library(
srcs = ["devices.cc"], srcs = ["devices.cc"],
hdrs = ["devices.h"], hdrs = ["devices.h"],
cuda_deps = [ cuda_deps = [
"//tensorflow/core:gpu_init", "//tensorflow/core/common_runtime/gpu:gpu_init",
"//tensorflow/core:stream_executor", "//tensorflow/core:stream_executor",
], ],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],

View File

@ -28,7 +28,7 @@ tf_cuda_library(
deps = [ deps = [
"//third_party/eigen3", "//third_party/eigen3",
"//tensorflow/core:framework", "//tensorflow/core:framework",
"//tensorflow/core:gpu_id", "//tensorflow/core/common_runtime/gpu:gpu_id",
"//tensorflow/core:lib", "//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
] + select({ ] + select({
@ -44,11 +44,11 @@ tf_cc_test(
tags = tf_cuda_tests_tags(), tags = tf_cuda_tests_tags(),
deps = [ deps = [
":utils", ":utils",
"//tensorflow/core:gpu_id",
"//tensorflow/core:lib", "//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//tensorflow/core:test", "//tensorflow/core:test",
"//tensorflow/core:test_main", "//tensorflow/core:test_main",
"//tensorflow/core/common_runtime/gpu:gpu_id",
], ],
) )
@ -128,12 +128,12 @@ cc_library(
":utils", ":utils",
"//tensorflow/cc:coordinator", "//tensorflow/cc:coordinator",
"//tensorflow/cc:queue_runner", "//tensorflow/cc:queue_runner",
"//tensorflow/core:core_cpu",
"//tensorflow/core:core_cpu_lib",
"//tensorflow/core:direct_session",
"//tensorflow/core:framework", "//tensorflow/core:framework",
"//tensorflow/core:gpu_id",
"//tensorflow/core:lib", "//tensorflow/core:lib",
"//tensorflow/core/common_runtime:core_cpu",
"//tensorflow/core/common_runtime:core_cpu_lib",
"//tensorflow/core/common_runtime:direct_session_internal",
"//tensorflow/core/common_runtime/gpu:gpu_id",
"//tensorflow/core/grappler:utils", "//tensorflow/core/grappler:utils",
"//tensorflow/core/kernels:ops_util", "//tensorflow/core/kernels:ops_util",
], ],

View File

@ -167,7 +167,7 @@ tf_cuda_library(
"@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/strings:str_format",
"//tensorflow/core:framework", "//tensorflow/core:framework",
"//tensorflow/core:graph", "//tensorflow/core:graph",
"//tensorflow/core:gpu_id", "//tensorflow/core/common_runtime/gpu:gpu_id",
"//tensorflow/core:lib", "//tensorflow/core:lib",
"//tensorflow/core:lib_proto_parsing", "//tensorflow/core:lib_proto_parsing",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",

View File

@ -188,12 +188,12 @@ cc_library(
hdrs = ["functions.h"], hdrs = ["functions.h"],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [
"//tensorflow/core:core_cpu_base_no_ops",
"//tensorflow/core:framework", "//tensorflow/core:framework",
"//tensorflow/core:framework_internal", "//tensorflow/core:framework_internal",
"//tensorflow/core:lib", "//tensorflow/core:lib",
"//tensorflow/core:lib_internal", "//tensorflow/core:lib_internal",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime:core_cpu_base_no_ops",
"//tensorflow/core/grappler:grappler_item", "//tensorflow/core/grappler:grappler_item",
"//tensorflow/core/grappler:op_types", "//tensorflow/core/grappler:op_types",
"//tensorflow/core/grappler:utils", "//tensorflow/core/grappler:utils",

View File

@ -982,7 +982,7 @@ ARRAY_DEPS = [
"//tensorflow/core:lib_internal", "//tensorflow/core:lib_internal",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//third_party/eigen3", "//third_party/eigen3",
] + if_sycl(["//tensorflow/core:sycl_runtime"]) ] + if_sycl(["//tensorflow/core/common_runtime/sycl:sycl_runtime"])
tf_kernel_library( tf_kernel_library(
name = "immutable_constant_op", name = "immutable_constant_op",
@ -5624,7 +5624,7 @@ STATE_DEPS = [
"//tensorflow/core:framework", "//tensorflow/core:framework",
"//tensorflow/core:lib", "//tensorflow/core:lib",
"//tensorflow/core:lib_internal", "//tensorflow/core:lib_internal",
] + if_sycl(["//tensorflow/core:sycl_runtime"]) ] + if_sycl(["//tensorflow/core/common_runtime/sycl:sycl_runtime"])
tf_kernel_library( tf_kernel_library(
name = "count_up_to_op", name = "count_up_to_op",

View File

@ -72,6 +72,6 @@ tf_cuda_cc_test(
"//tensorflow/core:cuda", "//tensorflow/core:cuda",
]) + if_rocm([ ]) + if_rocm([
"@local_config_rocm//rocm:rccl", "@local_config_rocm//rocm:rccl",
"//tensorflow/core:rocm", "//tensorflow/core/common_runtime/gpu:rocm",
]), ]),
) )

View File

@ -403,11 +403,11 @@ tf_python_pybind_extension(
deps = [ deps = [
":cost_analyzer_headers", ":cost_analyzer_headers",
":pybind11_status", ":pybind11_status",
"//tensorflow/core:core_cpu_headers_lib",
"//tensorflow/core:framework_headers_lib", "//tensorflow/core:framework_headers_lib",
"//tensorflow/core:gpu_id",
"//tensorflow/core:lib_headers_for_pybind", "//tensorflow/core:lib_headers_for_pybind",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime:core_cpu_headers_lib",
"//tensorflow/core/common_runtime/gpu:gpu_id",
"@pybind11", "@pybind11",
], ],
) )
@ -566,8 +566,8 @@ cc_library(
visibility = tf_external_workspace_visible(visibility), visibility = tf_external_workspace_visible(visibility),
deps = [ deps = [
"//tensorflow/c:tf_status_headers", "//tensorflow/c:tf_status_headers",
"//tensorflow/core:core_cpu_headers_lib",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime:core_cpu_headers_lib",
"//third_party/python_runtime:headers", "//third_party/python_runtime:headers",
"@pybind11", "@pybind11",
], ],
@ -646,7 +646,7 @@ tf_python_pybind_extension(
"//third_party/python_runtime:headers", "//third_party/python_runtime:headers",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//tensorflow/core:framework_headers_lib", "//tensorflow/core:framework_headers_lib",
"//tensorflow/core:core_cpu_headers_lib", "//tensorflow/core/common_runtime:core_cpu_headers_lib",
"//tensorflow/core:lib_headers_for_pybind", "//tensorflow/core:lib_headers_for_pybind",
"@com_google_absl//absl/types:optional", "@com_google_absl//absl/types:optional",
] + if_static( ] + if_static(
@ -717,10 +717,10 @@ tf_python_pybind_extension(
":pybind11_lib", ":pybind11_lib",
":pybind11_proto", ":pybind11_proto",
":pybind11_status", ":pybind11_status",
"//tensorflow/core:core_cpu_headers_lib",
"//tensorflow/core:framework_headers_lib", "//tensorflow/core:framework_headers_lib",
"//tensorflow/core:lib_headers_for_pybind", "//tensorflow/core:lib_headers_for_pybind",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime:core_cpu_headers_lib",
"//third_party/python_runtime:headers", "//third_party/python_runtime:headers",
"@com_google_absl//absl/strings", "@com_google_absl//absl/strings",
"@pybind11", "@pybind11",
@ -968,8 +968,8 @@ cc_library(
deps = [ deps = [
":numpy_lib", ":numpy_lib",
"//tensorflow/c:tf_status_headers", "//tensorflow/c:tf_status_headers",
"//tensorflow/core:core_cpu_headers_lib",
"//tensorflow/core:framework_internal_headers_lib", "//tensorflow/core:framework_internal_headers_lib",
"//tensorflow/core/common_runtime:core_cpu_headers_lib",
"//third_party/py/numpy:headers", "//third_party/py/numpy:headers",
"//third_party/python_runtime:headers", "//third_party/python_runtime:headers",
], ],
@ -5758,9 +5758,9 @@ tf_python_pybind_extension(
deps = [ deps = [
":pybind11_proto", ":pybind11_proto",
":pybind11_status", ":pybind11_status",
"//tensorflow/core:core_cpu_headers_lib",
"//tensorflow/core:framework_internal_headers_lib", "//tensorflow/core:framework_internal_headers_lib",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime:core_cpu_headers_lib",
"//third_party/python_runtime:headers", "//third_party/python_runtime:headers",
"@pybind11", "@pybind11",
], ],
@ -5926,7 +5926,7 @@ filegroup(
"//tensorflow/c:tf_status_helper", # tfe "//tensorflow/c:tf_status_helper", # tfe
"//tensorflow/compiler/jit:flags", #tfe "//tensorflow/compiler/jit:flags", #tfe
"//tensorflow/compiler/mlir/python:mlir", # mlir "//tensorflow/compiler/mlir/python:mlir", # mlir
"//tensorflow/core:core_cpu_base_no_ops", # tf_session "//tensorflow/core/common_runtime:core_cpu_base_no_ops", # tf_session
"//tensorflow/core:core_cpu_impl", # device_lib "//tensorflow/core:core_cpu_impl", # device_lib
"//tensorflow/core/data/service:server_lib", # server_lib "//tensorflow/core/data/service:server_lib", # server_lib
"//tensorflow/core:framework_internal_impl", # op_def_registry "//tensorflow/core:framework_internal_impl", # op_def_registry
@ -7468,9 +7468,9 @@ tf_python_pybind_extension(
deps = [ deps = [
":pybind11_status", ":pybind11_status",
"@pybind11", "@pybind11",
"//tensorflow/core:core_cpu_headers_lib", "//tensorflow/core/common_runtime:core_cpu_headers_lib",
"//tensorflow/core:framework_headers_lib", "//tensorflow/core:framework_headers_lib",
"//tensorflow/core:gpu_id", "//tensorflow/core/common_runtime/gpu:gpu_id",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
] + if_not_windows(["//tensorflow/core/grappler/costs:graph_properties"]), # b/148556093, ] + if_not_windows(["//tensorflow/core/grappler/costs:graph_properties"]), # b/148556093,
) )
@ -7543,11 +7543,11 @@ tf_python_pybind_extension(
module_name = "_pywrap_tf_cluster", module_name = "_pywrap_tf_cluster",
deps = [ deps = [
":pybind11_status", ":pybind11_status",
"//tensorflow/core:core_cpu_headers_lib",
"//tensorflow/core:framework_headers_lib", "//tensorflow/core:framework_headers_lib",
"//tensorflow/core:gpu_id",
"//tensorflow/core:lib_headers_for_pybind", "//tensorflow/core:lib_headers_for_pybind",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime:core_cpu_headers_lib",
"//tensorflow/core/common_runtime/gpu:gpu_id",
"@com_google_absl//absl/types:span", "@com_google_absl//absl/types:span",
"@pybind11", "@pybind11",
], ],
@ -7604,11 +7604,11 @@ tf_python_pybind_extension(
module_name = "_pywrap_tf_optimizer", module_name = "_pywrap_tf_optimizer",
deps = [ deps = [
":pybind11_status", ":pybind11_status",
"//tensorflow/core:core_cpu_headers_lib",
"//tensorflow/core:framework_headers_lib", "//tensorflow/core:framework_headers_lib",
"//tensorflow/core:gpu_id",
"//tensorflow/core:lib_headers_for_pybind", "//tensorflow/core:lib_headers_for_pybind",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime:core_cpu_headers_lib",
"//tensorflow/core/common_runtime/gpu:gpu_id",
"@pybind11", "@pybind11",
], ],
) )
@ -7994,7 +7994,7 @@ tf_python_pybind_extension(
"@pybind11", "@pybind11",
"//third_party/python_runtime:headers", "//third_party/python_runtime:headers",
"//tensorflow/compiler/jit:flags_headers_only", "//tensorflow/compiler/jit:flags_headers_only",
"//tensorflow/core:core_cpu_headers_lib", "//tensorflow/core/common_runtime:core_cpu_headers_lib",
"//tensorflow/core:framework_headers_lib", "//tensorflow/core:framework_headers_lib",
"//tensorflow/core:lib_headers_for_pybind", "//tensorflow/core:lib_headers_for_pybind",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",

View File

@ -59,8 +59,8 @@ cc_library(
"@com_google_absl//absl/container:flat_hash_set", "@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/types:variant", "@com_google_absl//absl/types:variant",
"@ngraph//:ngraph_core", "@ngraph//:ngraph_core",
"@org_tensorflow//tensorflow/core:core_cpu_headers_lib",
"@org_tensorflow//tensorflow/core:framework_headers_lib", "@org_tensorflow//tensorflow/core:framework_headers_lib",
"@org_tensorflow//tensorflow/core/common_runtime:core_cpu_headers_lib",
], ],
alwayslink = 1, alwayslink = 1,
) )