Skip to content

Commit

Permalink
Update users of TSL headers and targets to new location in XLA
Browse files Browse the repository at this point in the history
Updating:
 - `env.h`
 - `env_time.h`
 - `errors.h`
 - `file_statistics.h`
 - `file_system.h`
 - `file_system_helper.h`
 - `logging.h`
 - `macros.h`
 - `status.h`
 - `status_matchers.h`
 - `status_to_from_proto.h`
 - `statusor.h`
 - `test.h`
 - `test_benchmark.h`
 - `threadpool.h`
 - `threadpool_async_executor.h`
 - `threadpool_interface.h`
 - `threadpool_options.h`
 - `types.h`

and associated targets.

PiperOrigin-RevId: 716048518
  • Loading branch information
ddunl authored and Google-ML-Automation committed Jan 16, 2025
1 parent 962f8e2 commit 5d6c28d
Show file tree
Hide file tree
Showing 18 changed files with 67 additions and 67 deletions.
16 changes: 8 additions & 8 deletions xla/python/ifrt_proxy/common/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ cc_library(
"//xla/python/ifrt:serdes",
"//xla/python/ifrt:sharding_serdes",
"//xla/tsl/concurrency:ref_count",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/hash",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
Expand All @@ -112,7 +113,6 @@ cc_library(
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:span",
"@llvm-project//llvm:Support",
"@tsl//tsl/platform:statusor",
] + if_google(["@com_google_absl//absl/types:source_location"]),
)

Expand All @@ -123,10 +123,10 @@ ifrt_proxy_cc_test(
":types",
":types_proto_cc",
"//xla/pjrt:pjrt_common",
"//xla/tsl/platform:status_matchers",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"@com_google_googletest//:gtest_main",
"@tsl//tsl/platform:status_matchers",
"@tsl//tsl/platform:statusor",
"@tsl//tsl/platform:test",
],
)

Expand All @@ -142,13 +142,13 @@ cc_library(
deps = [
":array_util_proto_cc",
"//xla/python/ifrt",
"//xla/tsl/platform:statusor",
"@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/strings:cord",
"@com_google_absl//absl/types:span",
"@tsl//tsl/platform:statusor",
],
)

Expand All @@ -158,11 +158,11 @@ ifrt_proxy_cc_test(
deps = [
":array_util",
"//xla/python/ifrt",
"//xla/tsl/platform:status_matchers",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/strings:cord",
"@com_google_absl//absl/strings:string_view",
"@com_google_googletest//:gtest_main",
"@tsl//tsl/platform:status_matchers",
"@tsl//tsl/platform:statusor",
],
)

Expand All @@ -184,10 +184,10 @@ cc_library(
hdrs = ["proto_util.h"],
deps = [
":ifrt_service_proto_cc",
"//xla/tsl/platform:status_to_from_proto",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings:string_view",
"@tsl//tsl/platform:status_to_from_proto",
],
)

Expand Down
2 changes: 1 addition & 1 deletion xla/python/ifrt_proxy/common/array_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "xla/python/ifrt/dtype.h"
#include "xla/python/ifrt/shape.h"
#include "xla/python/ifrt_proxy/common/array_util.pb.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
4 changes: 2 additions & 2 deletions xla/python/ifrt_proxy/common/array_util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include "absl/strings/string_view.h"
#include "xla/python/ifrt/dtype.h"
#include "xla/python/ifrt/shape.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
2 changes: 1 addition & 1 deletion xla/python/ifrt_proxy/common/proto_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "absl/status/status.h"
#include "xla/python/ifrt_proxy/common/ifrt_service.pb.h"
#include "tsl/platform/status_to_from_proto.h"
#include "xla/tsl/platform/status_to_from_proto.h"

namespace xla {
namespace ifrt {
Expand Down
6 changes: 3 additions & 3 deletions xla/python/ifrt_proxy/common/types_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#include <gtest/gtest.h>
#include "xla/pjrt/pjrt_common.h"
#include "xla/python/ifrt_proxy/common/types.pb.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"

namespace xla {
namespace ifrt {
Expand Down
10 changes: 5 additions & 5 deletions xla/python/ifrt_proxy/integration_tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ cc_library(
"//xla/python/ifrt_proxy/client:registry",
"//xla/python/ifrt_proxy/server:grpc_server",
"//xla/python/pjrt_ifrt",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/strings",
"@tsl//tsl/platform:statusor",
"@tsl//tsl/platform:test",
],
alwayslink = True,
)
Expand Down Expand Up @@ -104,6 +104,9 @@ ifrt_proxy_cc_test(
"//xla/python/ifrt_proxy/server:grpc_server",
"//xla/python/pjrt_ifrt",
"//xla/tsl/concurrency:ref_count",
"//xla/tsl/platform:status_matchers",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/functional:any_invocable",
"@com_google_absl//absl/log:check",
Expand All @@ -114,8 +117,5 @@ ifrt_proxy_cc_test(
"@com_google_absl//absl/time",
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest_main",
"@tsl//tsl/platform:status_matchers",
"@tsl//tsl/platform:statusor",
"@tsl//tsl/platform:test",
],
)
6 changes: 3 additions & 3 deletions xla/python/ifrt_proxy/integration_tests/mock_array_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
#include "xla/python/ifrt_proxy/server/grpc_server.h"
#include "xla/python/pjrt_ifrt/pjrt_client.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"

namespace xla {
namespace ifrt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#include "xla/python/ifrt_proxy/client/registry.h"
#include "xla/python/ifrt_proxy/server/grpc_server.h"
#include "xla/python/pjrt_ifrt/pjrt_client.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"

namespace xla {
namespace ifrt {
Expand Down
40 changes: 20 additions & 20 deletions xla/python/ifrt_proxy/server/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ cc_library(
"//xla/python/ifrt_proxy/common:grpc_credentials",
"//xla/python/ifrt_proxy/common:grpc_ifrt_service_cc_grpc_proto",
"//xla/python/ifrt_proxy/common:ifrt_service_proto_cc",
"//xla/tsl/platform:statusor",
"@com_github_grpc_grpc//:grpc",
"@com_github_grpc_grpc//:grpc++",
"@com_google_absl//absl/functional:any_invocable",
Expand All @@ -38,7 +39,6 @@ cc_library(
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:string_view",
"@tsl//tsl/platform:statusor",
],
)

Expand All @@ -49,12 +49,12 @@ ifrt_proxy_cc_test(
deps = [
":grpc_server",
"//xla/python/ifrt_proxy/common:grpc_ifrt_service_cc_grpc_proto",
"//xla/tsl/platform:status_matchers",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest_main",
"@tsl//tsl/platform:status_matchers",
"@tsl//tsl/platform:statusor",
"@tsl//tsl/platform:test",
],
)

Expand Down Expand Up @@ -101,15 +101,15 @@ ifrt_proxy_cc_test(
"//xla/python/ifrt_proxy/client:grpc_host_buffer",
"//xla/python/ifrt_proxy/common:grpc_ifrt_service_cc_grpc_proto",
"//xla/python/ifrt_proxy/common:ifrt_service_proto_cc",
"//xla/tsl/platform:status_matchers",
"//xla/tsl/platform:test",
"@com_github_grpc_grpc//:grpc++",
"@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/strings:cord",
"@com_google_googletest//:gtest_main",
"@tsl//tsl/platform:status_matchers",
"@tsl//tsl/platform:test",
],
)

Expand Down Expand Up @@ -138,6 +138,10 @@ cc_library(
"//xla/python/ifrt_proxy/common:types_proto_cc",
"//xla/python/pjrt_ifrt:xla_ifrt",
"//xla/tsl/concurrency:ref_count",
"//xla/tsl/platform:env",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:status_to_from_proto",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/cleanup",
"@com_google_absl//absl/container:flat_hash_map",
Expand All @@ -153,10 +157,6 @@ cc_library(
"@com_google_absl//absl/time",
"@com_google_absl//absl/types:span",
"@llvm-project//llvm:Support",
"@tsl//tsl/platform:env",
"@tsl//tsl/platform:errors",
"@tsl//tsl/platform:status_to_from_proto",
"@tsl//tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -189,6 +189,12 @@ ifrt_proxy_cc_test(
"//xla/service:computation_placer_hdr",
"//xla/tsl/concurrency:ref_count",
"//xla/tsl/lib/core:status_test_util",
"//xla/tsl/platform:env",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:status_matchers",
"//xla/tsl/platform:status_to_from_proto",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"//xla/tsl/protobuf:error_codes_proto_impl_cc",
"//xla/tsl/protobuf:status_proto_cc",
"@com_google_absl//absl/base:core_headers",
Expand All @@ -204,13 +210,7 @@ ifrt_proxy_cc_test(
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest_main",
"@llvm-project//llvm:Support",
"@tsl//tsl/platform:env",
"@tsl//tsl/platform:errors",
"@tsl//tsl/platform:protobuf",
"@tsl//tsl/platform:status_matchers",
"@tsl//tsl/platform:status_to_from_proto",
"@tsl//tsl/platform:statusor",
"@tsl//tsl/platform:test",
],
)

Expand Down Expand Up @@ -257,6 +257,7 @@ cc_library(
"//xla/python/pjrt_ifrt",
"//xla/python/pjrt_ifrt:xla_host_callback_proto_cc",
"//xla/tsl/concurrency:ref_count",
"//xla/tsl/platform:errors",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/functional:bind_front",
"@com_google_absl//absl/status",
Expand All @@ -265,7 +266,6 @@ cc_library(
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/types:span",
"@llvm-project//llvm:Support",
"@tsl//tsl/platform:errors",
],
)

Expand All @@ -287,9 +287,9 @@ ifrt_proxy_cc_test(
srcs = ["version_test.cc"],
deps = [
":version",
"//xla/tsl/platform:status_matchers",
"@com_google_absl//absl/status",
"@com_google_googletest//:gtest_main",
"@tsl//tsl/platform:status_matchers",
],
)

Expand All @@ -299,11 +299,11 @@ ifrt_proxy_cc_test(
deps = [
":host_buffer",
"//xla/python/ifrt",
"//xla/tsl/platform:env",
"//xla/tsl/platform:status_matchers",
"@com_google_absl//absl/status",
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/time",
"@com_google_googletest//:gtest_main",
"@tsl//tsl/platform:env",
"@tsl//tsl/platform:status_matchers",
],
)
2 changes: 1 addition & 1 deletion xla/python/ifrt_proxy/server/grpc_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include "xla/python/ifrt_proxy/server/grpc_service_impl.h"
#include "xla/python/ifrt_proxy/server/host_buffer.h"
#include "xla/python/ifrt_proxy/server/ifrt_backend.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
6 changes: 3 additions & 3 deletions xla/python/ifrt_proxy/server/grpc_server_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "xla/python/ifrt_proxy/common/grpc_ifrt_service.grpc.pb.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"

namespace xla {
namespace ifrt {
Expand Down
4 changes: 2 additions & 2 deletions xla/python/ifrt_proxy/server/grpc_service_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
#include "xla/python/ifrt_proxy/server/grpc_server.h"
#include "xla/python/ifrt_proxy/server/host_buffer.h"
#include "xla/python/ifrt_proxy/server/version.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/test.h"

namespace xla {
namespace ifrt {
Expand Down
4 changes: 2 additions & 2 deletions xla/python/ifrt_proxy/server/host_buffer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include "absl/time/clock.h"
#include "absl/time/time.h"
#include "xla/python/ifrt/future.h"
#include "tsl/platform/env.h"
#include "tsl/platform/status_matchers.h"
#include "xla/tsl/platform/env.h"
#include "xla/tsl/platform/status_matchers.h"

namespace xla {
namespace ifrt {
Expand Down
2 changes: 1 addition & 1 deletion xla/python/ifrt_proxy/server/host_callback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "xla/shape.h"
#include "xla/shape_util.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "tsl/platform/errors.h"
#include "xla/tsl/platform/errors.h"

namespace xla {
namespace ifrt {
Expand Down
10 changes: 5 additions & 5 deletions xla/python/ifrt_proxy/server/ifrt_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
#include "xla/python/pjrt_ifrt/xla_compiler.h"
#include "xla/status_macros.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/env.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/status_to_from_proto.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/threadpool.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/env.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/status_to_from_proto.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/threadpool.h"

namespace xla {
namespace ifrt {
Expand Down
2 changes: 1 addition & 1 deletion xla/python/ifrt_proxy/server/ifrt_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "xla/python/ifrt_proxy/server/host_buffer.h"
#include "xla/python/ifrt_proxy/server/host_callback.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "tsl/platform/threadpool.h"
#include "xla/tsl/platform/threadpool.h"

namespace xla {
namespace ifrt {
Expand Down
Loading

0 comments on commit 5d6c28d

Please sign in to comment.