blob: 6cd525b317d49618bf562732893fb37142b52dc2 [file] [log] [blame]
load(
"//tensorflow:tensorflow.bzl",
"tf_cc_test",
)
package(
default_visibility = [
"//tensorflow:internal",
],
licenses = ["notice"], # Apache 2.0
)
exports_files(["LICENSE"])
cc_library(
name = "remote_tensor_handle",
hdrs = ["remote_tensor_handle.h"],
deps = [
"//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc",
],
)
cc_library(
name = "cluster_function_library_runtime",
srcs = [
"cluster_function_library_runtime.cc",
],
hdrs = [
"cluster_function_library_runtime.h",
],
deps = [
":eager_client",
":remote_execute_node",
":remote_mgr",
"//tensorflow/core:core_cpu_internal",
"//tensorflow/core:framework",
"//tensorflow/core:framework_internal",
"//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime/eager:context",
"//tensorflow/core/common_runtime/eager:eager_operation",
"//tensorflow/core/common_runtime/eager:tensor_handle",
"//tensorflow/core/distributed_runtime:worker_session",
"@com_google_absl//absl/types:span",
],
)
cc_library(
name = "destroy_tensor_handle_node",
hdrs = ["destroy_tensor_handle_node.h"],
deps = [
":eager_client",
"//tensorflow/core:eager_service_proto_cc",
"//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime/eager:context",
"//tensorflow/core/common_runtime/eager:eager_executor",
],
)
cc_library(
name = "eager_client",
hdrs = ["eager_client.h"],
deps = [
"//tensorflow/core:eager_service_proto_cc",
"//tensorflow/core:lib",
"//tensorflow/core:lib_internal",
],
)
cc_library(
name = "remote_execute_node",
srcs = ["remote_execute_node.cc"],
hdrs = ["remote_execute_node.h"],
deps = [
":eager_client",
"//tensorflow/core:core_cpu",
"//tensorflow/core:eager_service_proto_cc",
"//tensorflow/core:framework",
"//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime/eager:eager_executor",
"//tensorflow/core/common_runtime/eager:shape_inference",
"//tensorflow/core/common_runtime/eager:tensor_handle",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:span",
],
)
cc_library(
name = "eager_service_impl",
srcs = ["eager_service_impl.cc"],
hdrs = [
"eager_service_impl.h",
],
deps = [
":cluster_function_library_runtime",
":remote_mgr",
":remote_tensor_handle",
"//tensorflow:grpc++",
"//tensorflow/c:c_api_internal",
"//tensorflow/c:tf_status_helper",
"//tensorflow/core:core_cpu_internal",
"//tensorflow/core:eager_service_proto_cc",
"//tensorflow/core:framework_internal",
"//tensorflow/core:lib",
"//tensorflow/core:lib_internal",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core/common_runtime/eager:context",
"//tensorflow/core/common_runtime/eager:eager_operation",
"//tensorflow/core/common_runtime/eager:execute",
"//tensorflow/core/common_runtime/eager:process_function_library_runtime",
"//tensorflow/core/common_runtime/eager:tensor_handle",
"//tensorflow/core/distributed_runtime:server_lib",
"//tensorflow/core/distributed_runtime:session_mgr",
"//tensorflow/core/distributed_runtime:worker_cache",
"//tensorflow/core/distributed_runtime:worker_cache_wrapper",
"//tensorflow/core/distributed_runtime:worker_env",
"//tensorflow/core/distributed_runtime/rpc:rpc_rendezvous_mgr",
"//tensorflow/core/profiler/lib:traceme",
"@com_google_absl//absl/container:fixed_array",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/types:optional",
],
)
tf_cc_test(
name = "eager_service_impl_test",
srcs = ["eager_service_impl_test.cc"],
deps = [
":cluster_function_library_runtime",
":eager_service_impl",
":remote_mgr",
"//tensorflow/c:c_api",
"//tensorflow/c:c_api_internal",
"//tensorflow/core:eager_service_proto_cc",
"//tensorflow/core:lib",
"//tensorflow/core:lib_internal",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core:tensorflow",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core/common_runtime/eager:kernel_and_device",
"//tensorflow/core/common_runtime/eager:process_function_library_runtime",
"//tensorflow/core/common_runtime/eager:tensor_handle",
"//tensorflow/core/distributed_runtime:session_mgr",
"//tensorflow/core/distributed_runtime:test_utils",
"//tensorflow/core/distributed_runtime:worker_env",
"//tensorflow/core/distributed_runtime/rpc:rpc_rendezvous_mgr",
"@com_google_absl//absl/types:optional",
],
)
cc_library(
name = "remote_mgr",
srcs = [
"remote_mgr.cc",
],
hdrs = [
"remote_mgr.h",
],
visibility = ["//tensorflow:internal"],
deps = [
":remote_tensor_handle",
"//tensorflow/core:framework",
"//tensorflow/core:lib",
"//tensorflow/core/common_runtime/eager:eager_executor",
"//tensorflow/core/common_runtime/eager:tensor_handle",
],
)
tf_cc_test(
name = "remote_mgr_test",
size = "small",
srcs = ["remote_mgr_test.cc"],
deps = [
":remote_mgr",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core/common_runtime/eager:tensor_handle",
],
)
cc_library(
name = "remote_tensor_handle_data",
srcs = ["remote_tensor_handle_data.cc"],
hdrs = ["remote_tensor_handle_data.h"],
deps = [
":destroy_tensor_handle_node",
":eager_client",
"//tensorflow/core:lib",
"//tensorflow/core/common_runtime/eager:tensor_handle_data",
],
)
cc_library(
name = "remote_copy_node",
srcs = [
"remote_copy_node.cc",
],
hdrs = [
"remote_copy_node.h",
],
visibility = ["//tensorflow:internal"],
deps = [
":remote_mgr",
"//tensorflow/core:core_cpu",
"//tensorflow/core:framework",
"//tensorflow/core:lib",
"//tensorflow/core/common_runtime/eager:attr_builder",
"//tensorflow/core/common_runtime/eager:eager_executor",
"//tensorflow/core/common_runtime/eager:eager_operation",
"//tensorflow/core/common_runtime/eager:tensor_handle",
"@com_google_absl//absl/types:optional",
],
)