aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-06-28 11:13:35 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-28 11:17:24 -0700
commit07827d9f14b644a042ed1e94d140d3bbb9110313 (patch)
tree913ccb79f280ddd4d9d39997dc364ea41e5f3eb9
parent54a1e736a8cbf51b3bab5a7377411a25a1472d29 (diff)
Refine build configuration for reduce window tests.
PiperOrigin-RevId: 160429376
-rw-r--r--tensorflow/compiler/xla/tests/BUILD16
1 files changed, 7 insertions, 9 deletions
diff --git a/tensorflow/compiler/xla/tests/BUILD b/tensorflow/compiler/xla/tests/BUILD
index 2fd0680afa..f5a72a9bcc 100644
--- a/tensorflow/compiler/xla/tests/BUILD
+++ b/tensorflow/compiler/xla/tests/BUILD
@@ -874,16 +874,14 @@ xla_test(
],
)
-filegroup(
- name = "reduce_window_test_srcs",
- testonly = 1,
- srcs = ["reduce_window_test.cc"],
-)
-
+# Note that the backend-specific macros (e.g. DISABLED_ON_CPU) would not work here, because the
+# library does not get recompiled for each backend.
cc_library(
- name = "reduce_window_test_deps",
+ name = "reduce_window_test_library",
testonly = 1,
+ srcs = ["reduce_window_test.cc"],
deps = [
+ ":test_macros_header",
"//tensorflow/compiler/xla:array2d",
"//tensorflow/compiler/xla:array3d",
"//tensorflow/compiler/xla:array4d",
@@ -905,9 +903,9 @@ cc_library(
xla_test(
name = "reduce_window_test",
timeout = "long",
- srcs = ["reduce_window_test_srcs"],
+ srcs = [],
deps = [
- ":reduce_window_test_deps",
+ ":reduce_window_test_library",
],
)