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 #21779

Merged
merged 1 commit into from
Jan 24, 2025
Merged
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
4 changes: 4 additions & 0 deletions xla/backends/cpu/testlib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ xla_cc_test(
"//xla/runtime:buffer_use",
"//xla/stream_executor:launch_dim",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"//xla/tsl/platform:test_main",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings:string_view",
"@com_google_googletest//:gtest_main",
Expand Down Expand Up @@ -138,6 +140,8 @@ xla_cc_test(
"//xla/runtime:buffer_use",
"//xla/stream_executor:launch_dim",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"//xla/tsl/platform:test_main",
"@com_google_absl//absl/strings:string_view",
"@com_google_googletest//:gtest_main",
"@llvm-project//llvm:JITLink",
Expand Down
1 change: 1 addition & 0 deletions xla/backends/cpu/testlib/kernel_runner_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ limitations under the License.
#include "xla/shape_util.h"
#include "xla/stream_executor/launch_dim.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"

namespace xla::cpu {

Expand Down
1 change: 1 addition & 0 deletions xla/backends/cpu/testlib/llvm_ir_kernel_emitter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ limitations under the License.
#include "xla/runtime/buffer_use.h"
#include "xla/stream_executor/launch_dim.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"
#include "tsl/platform/casts.h"

namespace xla::cpu {
Expand Down
12 changes: 6 additions & 6 deletions xla/backends/profiler/cpu/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ cc_library(
# copybara:uncomment "//tensorflow/core/profiler:internal",
]),
deps = [
"//xla/tsl/platform:errors",
"//xla/tsl/profiler/backends/cpu:host_tracer_utils",
"//xla/tsl/profiler/backends/cpu:threadpool_listener",
"//xla/tsl/profiler/backends/cpu:traceme_recorder",
Expand All @@ -41,7 +42,6 @@ cc_library(
"//xla/tsl/profiler/utils:xplane_utils",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@tsl//tsl/platform:errors",
"@tsl//tsl/profiler/lib:profiler_collection",
"@tsl//tsl/profiler/lib:profiler_interface",
"@tsl//tsl/profiler/protobuf:xplane_proto_cc",
Expand Down Expand Up @@ -76,10 +76,10 @@ cc_library(
]),
deps = [
"//xla/python/profiler/internal:python_hooks",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:logging",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@tsl//tsl/platform:errors",
"@tsl//tsl/platform:logging",
"@tsl//tsl/profiler/lib:profiler_interface",
"@tsl//tsl/profiler/protobuf:xplane_proto_cc",
],
Expand Down Expand Up @@ -130,16 +130,16 @@ xla_cc_test(
deps = [
":host_tracer_impl",
"//xla/tsl/lib/core:status_test_util",
"//xla/tsl/platform:env",
"//xla/tsl/platform:test",
"//xla/tsl/platform:types",
"//xla/tsl/profiler/utils:tf_xplane_visitor",
"//xla/tsl/profiler/utils:timespan",
"//xla/tsl/profiler/utils:xplane_schema",
"//xla/tsl/profiler/utils:xplane_visitor",
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/types:optional",
"@com_google_googletest//:gtest_main",
"@tsl//tsl/platform:env",
"@tsl//tsl/platform:test",
"@tsl//tsl/platform:types",
"@tsl//tsl/profiler/lib:profiler_interface",
"@tsl//tsl/profiler/lib:traceme",
"@tsl//tsl/profiler/protobuf:xplane_proto_cc",
Expand Down
2 changes: 1 addition & 1 deletion xla/backends/profiler/cpu/host_tracer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ limitations under the License.

#include "absl/log/log.h"
#include "absl/status/status.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/profiler/backends/cpu/host_tracer_utils.h"
#include "xla/tsl/profiler/backends/cpu/threadpool_listener.h"
#include "xla/tsl/profiler/backends/cpu/traceme_recorder.h"
#include "xla/tsl/profiler/utils/time_utils.h"
#include "xla/tsl/profiler/utils/xplane_schema.h"
#include "xla/tsl/profiler/utils/xplane_utils.h"
#include "tsl/platform/errors.h"
#include "tsl/profiler/lib/profiler_collection.h"
#include "tsl/profiler/lib/profiler_interface.h"
#include "tsl/profiler/protobuf/xplane.pb.h"
Expand Down
8 changes: 4 additions & 4 deletions xla/backends/profiler/cpu/host_tracer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ limitations under the License.
#include "absl/synchronization/blocking_counter.h"
#include "absl/types/optional.h"
#include "xla/tsl/lib/core/status_test_util.h"
#include "xla/tsl/platform/env.h"
#include "xla/tsl/platform/test.h"
#include "xla/tsl/platform/threadpool.h"
#include "xla/tsl/platform/types.h"
#include "xla/tsl/profiler/utils/tf_xplane_visitor.h"
#include "xla/tsl/profiler/utils/timespan.h"
#include "xla/tsl/profiler/utils/xplane_schema.h"
#include "xla/tsl/profiler/utils/xplane_visitor.h"
#include "tsl/platform/env.h"
#include "tsl/platform/test.h"
#include "tsl/platform/threadpool.h"
#include "tsl/platform/types.h"
#include "tsl/profiler/lib/profiler_interface.h"
#include "tsl/profiler/lib/traceme.h"
#include "tsl/profiler/protobuf/xplane.pb.h"
Expand Down
4 changes: 2 additions & 2 deletions xla/backends/profiler/cpu/python_tracer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ limitations under the License.
#include "absl/log/log.h"
#include "absl/status/status.h"
#include "xla/python/profiler/internal/python_hooks.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/logging.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h"
#include "tsl/profiler/lib/profiler_interface.h"
#include "tsl/profiler/protobuf/xplane.pb.h"

Expand Down
17 changes: 9 additions & 8 deletions xla/hlo/parser/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ cc_library(
"//xla/service:name_uniquer",
"//xla/service:shape_inference",
"//xla/tsl/lib/gtl:map_util",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:logging",
"//xla/tsl/platform:status",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/base",
"@com_google_absl//absl/container:flat_hash_map",
Expand All @@ -56,9 +59,6 @@ cc_library(
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/types:span",
"@eigen_archive//:eigen3",
"@tsl//tsl/platform:errors",
"@tsl//tsl/platform:logging",
"@tsl//tsl/platform:status",
],
)

Expand All @@ -81,17 +81,18 @@ xla_cc_test(
"//xla/service:hlo_module_config",
"//xla/service:pattern_matcher",
"//xla/tsl/lib/core:status_test_util",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:status_matchers",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"//xla/tsl/platform:test_main",
"@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/types:span",
"@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
"@tsl//tsl/platform:errors",
"@tsl//tsl/platform:status_matchers",
"@tsl//tsl/platform:statusor",
"@tsl//tsl/platform:test",
],
)

Expand All @@ -105,12 +106,12 @@ cc_library(
"//xla:shape_util",
"//xla:util",
"//xla:xla_data_proto_cc",
"//xla/tsl/platform:logging",
"@com_google_absl//absl/base",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@tsl//tsl/platform:logging",
"@tsl//tsl/platform:numbers",
"@tsl//tsl/platform:regexp",
],
Expand Down
2 changes: 1 addition & 1 deletion xla/hlo/parser/hlo_lexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ limitations under the License.
#include <utility>

#include "absl/strings/string_view.h"
#include "xla/tsl/platform/logging.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/logging.h"
#include "tsl/platform/regexp.h"

namespace xla {
Expand Down
6 changes: 3 additions & 3 deletions xla/hlo/parser/hlo_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ limitations under the License.
#include "xla/shape_layout.h"
#include "xla/shape_util.h"
#include "xla/tsl/lib/gtl/map_util.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h"
#include "xla/tsl/platform/status.h"
#include "xla/types.h"
#include "xla/util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/logging.h"
#include "tsl/platform/status.h"

namespace xla {

Expand Down
8 changes: 4 additions & 4 deletions xla/hlo/parser/hlo_parser_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ limitations under the License.
#include "xla/shape.h"
#include "xla/shape_util.h"
#include "xla/tsl/lib/core/status_test_util.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"
#include "xla/window_util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/test.h"

namespace xla {
namespace {
Expand Down
Loading