aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/BUILD')
-rw-r--r--tensorflow/core/BUILD35
1 files changed, 34 insertions, 1 deletions
diff --git a/tensorflow/core/BUILD b/tensorflow/core/BUILD
index 19060c5ce7..e63327b5d4 100644
--- a/tensorflow/core/BUILD
+++ b/tensorflow/core/BUILD
@@ -662,6 +662,7 @@ cc_library(
"lib/random/random_distributions.h",
"lib/random/simple_philox.h",
"lib/strings/numbers.h",
+ "lib/strings/proto_serialization.h",
"lib/strings/str_util.h",
"lib/strings/strcat.h",
"lib/strings/stringprintf.h",
@@ -846,6 +847,7 @@ tf_cuda_library(
"util/sparse/sparse_tensor.h",
"util/stat_summarizer.h",
"util/stat_summarizer_options.h",
+ "util/status_util.h",
"util/stream_executor_util.h",
"util/strided_slice_op.h",
"util/tensor_format.h",
@@ -882,6 +884,16 @@ cc_library(
copts = tf_copts(),
)
+tf_cc_test(
+ name = "stats_calculator_test",
+ srcs = ["util/stats_calculator_test.cc"],
+ deps = [
+ ":stats_calculator_portable",
+ ":test",
+ ":test_main",
+ ],
+)
+
cc_library(
name = "overflow",
hdrs = ["util/overflow.h"],
@@ -1644,6 +1656,7 @@ cc_library(
copts = tf_copts(android_optimization_level_override = None) + [
"-DSUPPORT_SELECTIVE_REGISTRATION",
],
+ linkopts = if_android(["-lz"]),
tags = [
"manual",
"notap",
@@ -1667,6 +1680,7 @@ cc_library(
copts = tf_copts(android_optimization_level_override = None) + tf_opts_nortti_if_android() + [
"-DSUPPORT_SELECTIVE_REGISTRATION",
],
+ linkopts = if_android(["-lz"]),
tags = [
"manual",
"notap",
@@ -2466,6 +2480,7 @@ tf_cuda_library(
"framework/resource_handle.cc",
"util/memmapped_file_system.*",
"util/memmapped_file_system_writer.*",
+ "util/stats_calculator.*",
"util/version_info.cc",
],
) + select({
@@ -2492,6 +2507,7 @@ tf_cuda_library(
":protos_all_proto_text",
":error_codes_proto_text",
":protos_all_cc",
+ ":stats_calculator_portable",
":version_lib",
"//tensorflow/core/platform/default/build_config:platformlib",
"//tensorflow/core/kernels:bounds_check",
@@ -3226,6 +3242,7 @@ tf_cc_tests(
":test",
":test_main",
"//third_party/eigen3",
+ "@zlib_archive//:zlib",
],
)
@@ -3735,7 +3752,6 @@ tf_cc_tests_gpu(
"common_runtime/gpu/gpu_bfc_allocator_test.cc",
"common_runtime/gpu/gpu_device_test.cc",
"common_runtime/gpu/gpu_id_manager_test.cc",
- "common_runtime/gpu/gpu_event_mgr_test.cc",
"common_runtime/gpu/pool_allocator_test.cc",
],
linkstatic = tf_kernel_tests_linkstatic(),
@@ -3759,6 +3775,23 @@ tf_cc_tests_gpu(
],
)
+tf_cc_test_gpu(
+ name = "gpu_event_mgr_test",
+ srcs = ["common_runtime/gpu/gpu_event_mgr_test.cc"],
+ linkstatic = tf_kernel_tests_linkstatic(),
+ tags = tf_cuda_tests_tags(),
+ deps = [
+ ":framework",
+ ":framework_internal",
+ ":lib",
+ ":lib_internal",
+ ":protos_all_cc",
+ ":test",
+ ":test_main",
+ ":testlib",
+ ],
+)
+
tf_cuda_cc_test(
name = "gpu_device_unified_memory_test",
size = "small",