[go: nahoru, domu]

Skip to content

Commit

Permalink
Don't refactor dependencies into a bzl file.
Browse files Browse the repository at this point in the history
This breaks the usage of tools for editing BUILD files.
Also rename tests so that they end in a _test suffix.

PiperOrigin-RevId: 647618072
  • Loading branch information
akuegel authored and tensorflower-gardener committed Jun 28, 2024
1 parent bac9d71 commit 0a4261b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 23 deletions.
27 changes: 17 additions & 10 deletions third_party/xla/xla/tests/exhaustive/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

load("@local_tsl//tsl/platform:rules_cc.bzl", "cc_library")
load("//xla/tests:build_defs.bzl", "xla_test")
load(":build_defs.bzl", "exhaustive_unary_test_f32_or_smaller_deps")

package(
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
Expand Down Expand Up @@ -43,15 +42,16 @@ cc_library(
)

filegroup(
name = "exhaustive_unary_test_f32_or_smaller_lib_srcs",
srcs = ["exhaustive_unary_test_f32_or_smaller.cc"],
name = "exhaustive_unary_f32_or_smaller_test_lib_srcs",
testonly = True,
srcs = ["exhaustive_unary_f32_or_smaller_test.cc"],
)

xla_test(
name = "exhaustive_unary_test_f32_or_smaller",
name = "exhaustive_unary_f32_or_smaller_test",
srcs = [
"exhaustive_test_main.cc",
":exhaustive_unary_test_f32_or_smaller_lib_srcs",
"exhaustive_unary_f32_or_smaller_test.cc",
],
backends = [
"gpu",
Expand All @@ -65,15 +65,22 @@ xla_test(
# This is a big test that we skip for capacity reasons in OSS testing.
"no_oss",
],
deps = exhaustive_unary_test_f32_or_smaller_deps + [
deps = [
"//xla:types",
"//xla:util",
"//xla/client:xla_builder",
"//xla/client/lib:math",
"//xla/tests:client_library_test_base",
"//xla/tests/exhaustive:exhaustive_op_test_utils",
"@com_google_absl//absl/flags:flag",
"@local_tsl//tsl/platform",
"@local_tsl//tsl/platform:test",
],
)

xla_test(
name = "exhaustive_unary_test_f64",
srcs = ["exhaustive_unary_test_f64.cc"],
name = "exhaustive_unary_f64_test",
srcs = ["exhaustive_unary_f64_test.cc"],
backends = [
"gpu",
"cpu",
Expand All @@ -97,8 +104,8 @@ xla_test(
)

xla_test(
name = "exhaustive_unary_test_complex",
srcs = ["exhaustive_unary_test_complex.cc"],
name = "exhaustive_unary_complex_test",
srcs = ["exhaustive_unary_complex_test.cc"],
backends = [
"gpu",
"cpu",
Expand Down
13 changes: 0 additions & 13 deletions third_party/xla/xla/tests/exhaustive/build_defs.bzl

This file was deleted.

0 comments on commit 0a4261b

Please sign in to comment.