Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update users of TSL headers and targets to new location in XLA #21782

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions xla/stream_executor/tpu/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ cc_library(
"//xla/service:shaped_buffer",
"//xla/stream_executor:device_memory",
"//xla/stream_executor:device_memory_allocator",
"//xla/tsl/platform:logging",
"@com_google_absl//absl/container:inlined_vector",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/types:span",
"@tsl//tsl/platform:logging",
],
)

Expand Down Expand Up @@ -118,9 +118,9 @@ cc_library(
hdrs = ["noncopyable_buffer.h"],
visibility = ["//visibility:public"],
deps = [
"//xla/tsl/platform:logging",
"@com_google_absl//absl/functional:function_ref",
"@com_google_absl//absl/types:span",
"@tsl//tsl/platform:logging",
"@tsl//tsl/platform:platform_port",
],
)
Expand All @@ -132,8 +132,8 @@ cc_library(
":c_api_decl",
":tpu_executor_api",
":tpu_executor_c_api_hdrs",
"//xla/tsl/platform:status",
"@com_google_absl//absl/status",
"@tsl//tsl/platform:status",
],
)

Expand All @@ -144,8 +144,8 @@ cc_library(
":c_api_decl",
"//xla/tsl/c:tsl_status",
"//xla/tsl/c:tsl_status_helper",
"//xla/tsl/platform:status",
"@com_google_absl//absl/status",
"@tsl//tsl/platform:status",
],
)

Expand All @@ -155,8 +155,8 @@ cc_library(
hdrs = ["proto_helper.h"],
deps = [
":c_api_decl",
"//xla/tsl/platform:logging",
"@com_google_absl//absl/log:check",
"@tsl//tsl/platform:logging",
],
)

Expand Down Expand Up @@ -212,6 +212,8 @@ cc_library(
"//xla/stream_executor:stream",
"//xla/stream_executor:stream_executor_h",
"//xla/stream_executor/platform:initialize",
"//xla/tsl/platform:logging",
"//xla/tsl/platform:types",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/functional:any_invocable",
"@com_google_absl//absl/log",
Expand All @@ -221,8 +223,6 @@ cc_library(
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/types:span",
"@tsl//tsl/platform:casts",
"@tsl//tsl/platform:logging",
"@tsl//tsl/platform:types",
],
alwayslink = True,
)
Expand All @@ -246,13 +246,13 @@ cc_library(
"//xla/stream_executor:platform",
"//xla/stream_executor:stream",
"//xla/stream_executor:stream_executor_h",
"//xla/tsl/platform:logging",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/synchronization",
"@tsl//tsl/platform:logging",
],
)

Expand Down Expand Up @@ -284,6 +284,8 @@ cc_library(
"//xla/stream_executor:stream_common",
"//xla/stream_executor:stream_executor_common",
"//xla/stream_executor:stream_executor_h",
"//xla/tsl/platform:logging",
"//xla/tsl/platform:types",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/functional:any_invocable",
"@com_google_absl//absl/log",
Expand All @@ -293,8 +295,6 @@ cc_library(
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/types:span",
"@tsl//tsl/platform:casts",
"@tsl//tsl/platform:logging",
"@tsl//tsl/platform:types",
],
)

Expand Down Expand Up @@ -340,6 +340,10 @@ cc_library(
"//xla/stream_executor:stream",
"//xla/stream_executor:stream_executor_h",
"//xla/tsl/c:tsl_status_internal",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:logging",
"//xla/tsl/platform:status",
"//xla/tsl/platform:types",
"@com_google_absl//absl/cleanup",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/functional:any_invocable",
Expand All @@ -351,10 +355,6 @@ cc_library(
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/types:span",
"@tsl//tsl/platform:casts",
"@tsl//tsl/platform:errors",
"@tsl//tsl/platform:logging",
"@tsl//tsl/platform:status",
"@tsl//tsl/platform:types",
],
)

Expand Down Expand Up @@ -392,10 +392,10 @@ cc_library(
"//xla/service:backend",
"//xla/service:stream_pool",
"//xla/stream_executor:device_memory_allocator",
"//xla/tsl/platform:macros",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@tsl//tsl/platform:macros",
],
)

Expand Down Expand Up @@ -464,13 +464,13 @@ cc_library(
"//xla/stream_executor:platform",
"//xla/stream_executor:stream",
"//xla/stream_executor:stream_executor_h",
"//xla/tsl/platform:logging",
"@com_google_absl//absl/cleanup",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/types:span",
"@tsl//tsl/platform:casts",
"@tsl//tsl/platform:logging",
],
)

Expand All @@ -492,13 +492,13 @@ cc_library(
"//xla/hlo/ir:hlo",
"//xla/service:executable",
"//xla/stream_executor:device_memory",
"//xla/tsl/platform:macros",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:span",
"@tsl//tsl/platform:casts",
"@tsl//tsl/platform:macros",
],
)

Expand All @@ -513,14 +513,14 @@ cc_library(
"//xla/stream_executor:event",
"//xla/stream_executor:platform",
"//xla/stream_executor:platform_manager",
"//xla/tsl/platform:env",
"//xla/tsl/platform:logging",
"//xla/tsl/protobuf:error_codes_proto_impl_cc",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/synchronization",
"@tsl//tsl/platform:env",
"@tsl//tsl/platform:logging",
],
)

Expand All @@ -547,12 +547,12 @@ cc_library(
],
visibility = ["//visibility:public"],
deps = [
"//xla/tsl/platform:logging",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/synchronization",
"@tsl//tsl/platform:logging",
],
)

Expand All @@ -579,9 +579,9 @@ cc_library(
"//xla/service:hlo_cost_analysis",
"//xla/service:hlo_proto_cc",
"//xla/stream_executor:platform",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/cleanup",
"@com_google_absl//absl/status:statusor",
"@tsl//tsl/platform:statusor",
],
alwayslink = True,
)
Expand Down Expand Up @@ -617,16 +617,16 @@ cc_library(
"//xla/stream_executor:device_memory_allocator",
"//xla/stream_executor:stream",
"//xla/stream_executor:stream_executor_h",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:logging",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:span",
"@tsl//tsl/platform:errors",
"@tsl//tsl/platform:logging",
"@tsl//tsl/platform:statusor",
],
)

Expand All @@ -650,6 +650,8 @@ cc_library(
"//xla/service:shaped_buffer",
"//xla/stream_executor:device_memory",
"//xla/stream_executor:stream",
"//xla/tsl/platform:logging",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/cleanup",
"@com_google_absl//absl/container:inlined_vector",
"@com_google_absl//absl/log",
Expand All @@ -658,8 +660,6 @@ cc_library(
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:span",
"@tsl//tsl/platform:logging",
"@tsl//tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -690,6 +690,6 @@ cc_library(
deps = [
":c_api_decl",
":tpu_executor_api",
"@tsl//tsl/platform:types",
"//xla/tsl/platform:types",
],
)
2 changes: 1 addition & 1 deletion xla/stream_executor/tpu/c_api_conversions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ limitations under the License.
#include "xla/stream_executor/tpu/tpu_executor_api.h"
#include "xla/stream_executor/tpu/tpu_executor_c_api.h"
#include "xla/stream_executor/tpu/tpu_ops_c_api.h"
#include "xla/tsl/platform/logging.h" // IWYU pragma: keep
#include "xla/util.h"
#include "xla/xla.pb.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/logging.h" // IWYU pragma: keep

namespace ApiConverter {

Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/tpu/noncopyable_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ limitations under the License.

#include "absl/functional/function_ref.h"
#include "absl/types/span.h"
#include "tsl/platform/logging.h" // IWYU pragma: keep
#include "xla/tsl/platform/logging.h" // IWYU pragma: keep
#include "tsl/platform/mem.h"

namespace tensorflow {
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/tpu/proto_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.

#include "absl/log/check.h"
#include "xla/stream_executor/tpu/c_api_decl.h"
#include "tsl/platform/logging.h" // IWYU pragma: keep
#include "xla/tsl/platform/logging.h" // IWYU pragma: keep

extern "C" {

Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/tpu/proto_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.

#include "absl/log/check.h"
#include "xla/stream_executor/tpu/c_api_decl.h"
#include "tsl/platform/logging.h" // IWYU pragma: keep
#include "xla/tsl/platform/logging.h" // IWYU pragma: keep

extern "C" {

Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/tpu/tpu_executable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ limitations under the License.
#include "xla/stream_executor/tpu/status_helper.h"
#include "xla/stream_executor/tpu/tpu_executor_api.h"
#include "xla/stream_executor/tpu/tpu_stream.h"
#include "xla/tsl/platform/logging.h" // IWYU pragma: keep
#include "xla/tsl/platform/statusor.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/logging.h" // IWYU pragma: keep
#include "tsl/platform/statusor.h"

namespace ApiConverter {

Expand Down
6 changes: 3 additions & 3 deletions xla/stream_executor/tpu/tpu_executable_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ limitations under the License.
#include "xla/stream_executor/device_memory.h"
#include "xla/stream_executor/device_memory_allocator.h"
#include "xla/stream_executor/stream.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h" // IWYU pragma: keep
#include "xla/tsl/platform/statusor.h"
#include "xla/util.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/logging.h" // IWYU pragma: keep
#include "tsl/platform/statusor.h"

namespace xla {

Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/tpu/tpu_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ limitations under the License.
#include "xla/stream_executor/tpu/tpu_stream.h"
#include "xla/stream_executor/tpu/tpu_topology.h"
#include "xla/tsl/c/tsl_status.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/logging.h" // IWYU pragma: keep
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h" // IWYU pragma: keep

namespace stream_executor {
namespace tpu {
Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/tpu/tpu_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ limitations under the License.
#include "xla/stream_executor/tpu/tpu_platform.h"
#include "xla/stream_executor/tpu/tpu_platform_interface.h"
#include "xla/stream_executor/tpu/tpu_topology.h"
#include "xla/tsl/platform/logging.h" // IWYU pragma: keep
#include "xla/tsl/platform/types.h"
#include "tsl/platform/casts.h"
#include "tsl/platform/logging.h" // IWYU pragma: keep
#include "tsl/platform/types.h"

namespace stream_executor {
namespace tpu {
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/tpu/tpu_initialize_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ limitations under the License.
#include "absl/strings/str_cat.h"
#include "absl/strings/str_split.h"
#include "absl/synchronization/mutex.h"
#include "tsl/platform/logging.h"
#include "xla/tsl/platform/logging.h"

namespace tensorflow {
namespace tpu {
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/tpu/tpu_node_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ limitations under the License.
#include "xla/stream_executor/device_memory_allocator.h"
#include "xla/stream_executor/tpu/tpu_ops_c_api.h"
#include "xla/stream_executor/tpu/tpu_platform_interface.h"
#include "tsl/platform/macros.h"
#include "xla/tsl/platform/macros.h"

namespace tensorflow {
namespace tpu {
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/tpu/tpu_on_demand_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ limitations under the License.
#include "xla/stream_executor/tpu/tpu_executor_api.h"
#include "xla/stream_executor/tpu/tpu_executor_c_api.h"
#include "xla/stream_executor/tpu/tpu_platform_id.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/util.h"
#include "tsl/platform/statusor.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/tpu/tpu_op_executable.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ limitations under the License.
#include "xla/stream_executor/tpu/c_api_decl.h"
#include "xla/stream_executor/tpu/tpu_executable_interface.h"
#include "xla/stream_executor/tpu/tpu_ops_c_api.h"
#include "tsl/platform/macros.h"
#include "xla/tsl/platform/macros.h"

namespace tensorflow {

Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/tpu/tpu_platform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ limitations under the License.
#include "xla/stream_executor/tpu/tpu_platform_id.h"
#include "xla/stream_executor/tpu/tpu_platform_interface.h"
#include "xla/stream_executor/tpu/tpu_topology.h"
#include "tsl/platform/logging.h" // IWYU pragma: keep
#include "tsl/platform/status.h"
#include "xla/tsl/platform/logging.h" // IWYU pragma: keep
#include "xla/tsl/platform/status.h"

namespace tensorflow {
namespace tpu {
Expand Down
Loading