Skip to content

Commit

Permalink
Move tsl/platform/{build_config,build_config_root,rules_cc}.bzl to …
Browse files Browse the repository at this point in the history
…`xla/tsl/platform`

PiperOrigin-RevId: 700472724
  • Loading branch information
ddunl authored and copybara-github committed Nov 26, 2024
1 parent 3ca3f3e commit a5a0523
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 159 deletions.
2 changes: 1 addition & 1 deletion third_party/llvm_openmp/openmp.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ after the TF 2.4 branch cut has passed.
"""

load(
"@tsl//tsl/platform:rules_cc.bzl",
"@xla//xla/tsl/platform:rules_cc.bzl",
"cc_binary",
)

Expand Down
23 changes: 3 additions & 20 deletions tsl/platform/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
# The libraries in this package are not allowed to have ANY dependencies
# to other TF components outside of TSL.

load(
"@bazel_skylib//:bzl_library.bzl",
"bzl_library",
)
load(
"@xla//xla/tsl:tsl.bzl",
"if_not_fuchsia",
Expand All @@ -16,13 +12,12 @@ load(
)
load("@xla//xla/tsl:tsl.default.bzl", "get_compatible_with_portable")
load(
"//tsl/platform:build_config.bzl",
"@xla//xla/tsl/platform:build_config.bzl",
"tf_cuda_root_path_deps",
"tf_error_logging_deps",
"tf_fingerprint_deps",
"tf_google_mobile_srcs_no_runtime",
"tf_logging_deps",
"tf_platform_alias",
"tf_platform_deps",
"tf_protobuf_compiler_deps",
"tf_resource_deps",
Expand All @@ -32,9 +27,9 @@ load(
"tsl_grpc_credentials_deps",
"tsl_protobuf_deps",
)
load("//tsl/platform:build_config_root.bzl", "if_static")
load("@xla//xla/tsl/platform:build_config_root.bzl", "if_static")
load(
"//tsl/platform:rules_cc.bzl",
"@xla//xla/tsl/platform:rules_cc.bzl",
"cc_library",
)

Expand Down Expand Up @@ -1749,18 +1744,6 @@ tsl_cc_test(
],
)

bzl_library(
name = "rules_cc_bzl",
srcs = ["rules_cc.bzl"],
deps = tf_platform_alias("rules_cc_bzl"),
)

bzl_library(
name = "build_config_root_bzl",
srcs = ["build_config_root.bzl"],
deps = tf_platform_alias("build_config_root_bzl"),
)

cc_library(
name = "retrying_utils",
srcs = [
Expand Down
78 changes: 0 additions & 78 deletions tsl/platform/build_config.bzl

This file was deleted.

40 changes: 0 additions & 40 deletions tsl/platform/build_config_root.bzl

This file was deleted.

16 changes: 0 additions & 16 deletions tsl/platform/rules_cc.bzl

This file was deleted.

6 changes: 3 additions & 3 deletions tsl/profiler/lib/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
load("@xla//xla/tsl:tsl.bzl", "if_not_android", "if_oss", "internal_visibility", "nvtx_headers")
load("@xla//xla/tsl:tsl.default.bzl", "filegroup", "get_compatible_with_portable")
load("@xla//xla/tsl/platform:build_config.bzl", "tsl_cc_test")
load("@xla//xla/tsl/platform:build_config_root.bzl", "if_static")
load("@xla//xla/tsl/platform:rules_cc.bzl", "cc_library")
load(
"@xla//xla/tsl/platform/default:cuda_build_defs.bzl",
"if_cuda_is_configured",
Expand All @@ -9,9 +12,6 @@ load(
"tf_profiler_copts",
"tf_profiler_pybind_cc_library_wrapper",
)
load("//tsl/platform:build_config.bzl", "tsl_cc_test")
load("//tsl/platform:build_config_root.bzl", "if_static")
load("//tsl/platform:rules_cc.bzl", "cc_library")

# copybara:uncomment package(default_applicable_licenses = ["//tensorflow:license"])

Expand Down
2 changes: 1 addition & 1 deletion tsl/profiler/protobuf/BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# copybara:uncomment(oss-unused) load("//net/grpc/go/build_defs:go_grpc_library.bzl", "go_grpc_library")
# Placeholder: load py_proto_library
load("@xla//xla/tsl:tsl.bzl", "internal_visibility")
load("//tsl/platform:build_config.bzl", "tf_proto_library")
load("@xla//xla/tsl/platform:build_config.bzl", "tf_proto_library")

# copybara:uncomment package(default_applicable_licenses = ["//tensorflow:license"])

Expand Down

0 comments on commit a5a0523

Please sign in to comment.