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: 716721921
  • Loading branch information
ddunl authored and tensorflower-gardener committed Jan 17, 2025
1 parent 1ae20f1 commit 738fce0
Show file tree
Hide file tree
Showing 19 changed files with 48 additions and 48 deletions.
34 changes: 17 additions & 17 deletions third_party/xla/xla/python/pjrt_ifrt/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ cc_library(
"//xla/python/ifrt",
"//xla/python/ifrt:serdes",
"//xla/tsl/concurrency:ref_count",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
Expand All @@ -51,7 +52,6 @@ cc_library(
"@com_google_absl//absl/types:span",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
"@local_tsl//tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -88,11 +88,11 @@ cc_library(
"//xla/python/ifrt",
"//xla/python/ifrt:serdes",
"//xla/python/ifrt:sharding_serdes",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@llvm-project//llvm:Support",
"@local_tsl//tsl/platform:statusor",
],
alwayslink = True,
)
Expand All @@ -108,10 +108,10 @@ xla_cc_test(
"//xla/python/ifrt:device_test_util",
"//xla/python/ifrt:serdes",
"//xla/python/ifrt:sharding_serdes",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/functional:bind_front",
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest_main",
"@local_tsl//tsl/platform:statusor",
],
)

Expand All @@ -129,12 +129,12 @@ cc_library(
"//xla/python/ifrt:test_util",
"//xla/python/ifrt/hlo:hlo_program",
"//xla/tsl/lib/core:status_test_util",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:span",
"@llvm-project//mlir:IR",
"@local_tsl//tsl/platform:statusor",
"@local_tsl//tsl/platform:test",
],
alwayslink = True,
)
Expand Down Expand Up @@ -165,11 +165,11 @@ xla_cc_test(
"//xla/python/ifrt:device_test_util",
"//xla/python/ifrt:tuple_impl_test_lib",
"//xla/tsl/concurrency:ref_count",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:status_matchers",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest_main",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:status_matchers",
"@local_tsl//tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -231,6 +231,9 @@ cc_library(
"//xla/service:computation_placer_hdr",
"//xla/service:hlo_proto_cc",
"//xla/tsl/concurrency:ref_count",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:logging",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/container:flat_hash_map",
Expand All @@ -251,9 +254,6 @@ cc_library(
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@local_tsl//tsl/platform:casts",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:logging",
"@local_tsl//tsl/platform:statusor",
],
)

Expand All @@ -267,8 +267,8 @@ cc_library(
"//xla/pjrt/plugin/xla_cpu:xla_cpu_pjrt_client",
"//xla/python/ifrt",
"//xla/python/ifrt:test_util",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/status:statusor",
"@local_tsl//tsl/platform:statusor",
],
alwayslink = True,
)
Expand All @@ -283,8 +283,8 @@ cc_library(
"//xla/pjrt/plugin/xla_cpu:xla_cpu_pjrt_client",
"//xla/python/ifrt",
"//xla/python/ifrt:test_util",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/status:statusor",
"@local_tsl//tsl/platform:statusor",
],
alwayslink = True,
)
Expand Down Expand Up @@ -343,6 +343,7 @@ cc_library(
"//xla/pjrt:pjrt_layout",
"//xla/python/ifrt",
"//xla/tsl/concurrency:ref_count",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/container:inlined_vector",
"@com_google_absl//absl/hash",
Expand All @@ -355,7 +356,6 @@ cc_library(
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/types:span",
"@llvm-project//llvm:Support",
"@local_tsl//tsl/platform:statusor",
],
)

Expand All @@ -370,6 +370,9 @@ xla_cc_test(
"//xla/python/ifrt:test_util",
"//xla/tsl/concurrency:ref_count",
"//xla/tsl/lib/core:status_test_util",
"//xla/tsl/platform:env",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings",
Expand All @@ -379,9 +382,6 @@ xla_cc_test(
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest_main",
"@llvm-project//llvm:Support",
"@local_tsl//tsl/platform:env",
"@local_tsl//tsl/platform:statusor",
"@local_tsl//tsl/platform:test",
],
)

Expand Down
2 changes: 1 addition & 1 deletion third_party/xla/xla/python/pjrt_ifrt/basic_string_array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ limitations under the License.
#include "xla/python/ifrt/shape.h"
#include "xla/python/ifrt/sharding.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/statusor.h"

// TODO(jmudigonda): Several BasicStringArray operations such as
// DisassembleIntoSingleDeviceArrays, Reshard, FullyReplicatedShard,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ limitations under the License.
#include "xla/python/ifrt/test_util.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/lib/core/status_test_util.h"
#include "tsl/platform/env.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/env.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 third_party/xla/xla/python/pjrt_ifrt/pjrt_array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ limitations under the License.
#include "xla/shape_util.h"
#include "xla/status_macros.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
6 changes: 3 additions & 3 deletions third_party/xla/xla/python/pjrt_ifrt/pjrt_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ limitations under the License.
#include "xla/python/pjrt_ifrt/xla_sharding.h"
#include "xla/status_macros.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/casts.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/logging.h"
#include "tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
2 changes: 1 addition & 1 deletion third_party/xla/xla/python/pjrt_ifrt/pjrt_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ limitations under the License.
#include "xla/python/ifrt/value.h"
#include "xla/python/pjrt_ifrt/pjrt_compiler.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/logging.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/logging.h"

namespace xla {
namespace ifrt {
Expand Down
6 changes: 3 additions & 3 deletions third_party/xla/xla/python/pjrt_ifrt/pjrt_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ limitations under the License.
#include "xla/python/pjrt_ifrt/pjrt_topology.h"
#include "xla/python/pjrt_ifrt/xla_compiler.h"
#include "xla/service/computation_placer.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/logging.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h"
#include "xla/tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.
#include "xla/python/ifrt/device.h"
#include "xla/python/ifrt/test_util.h"
#include "xla/python/pjrt_ifrt/pjrt_client.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ limitations under the License.
#include "xla/python/ifrt/client.h"
#include "xla/python/ifrt/test_util.h"
#include "xla/python/pjrt_ifrt/pjrt_client.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
4 changes: 2 additions & 2 deletions third_party/xla/xla/python/pjrt_ifrt/pjrt_executable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ limitations under the License.
#include "xla/shape_util.h"
#include "xla/status_macros.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
2 changes: 1 addition & 1 deletion third_party/xla/xla/python/pjrt_ifrt/pjrt_executable.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ limitations under the License.
#include "xla/python/pjrt_ifrt/pjrt_host_callback.h"
#include "xla/python/pjrt_ifrt/xla_compiler.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
6 changes: 3 additions & 3 deletions third_party/xla/xla/python/pjrt_ifrt/pjrt_remap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ limitations under the License.
#include "xla/python/ifrt/shape.h"
#include "xla/python/pjrt_ifrt/pjrt_array.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/util.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/logging.h"
#include "tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
2 changes: 1 addition & 1 deletion third_party/xla/xla/python/pjrt_ifrt/pjrt_remap.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ limitations under the License.
#include "xla/python/ifrt/array.h"
#include "xla/python/ifrt/remap_plan.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/logging.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/logging.h"

namespace xla {
namespace ifrt {
Expand Down
2 changes: 1 addition & 1 deletion third_party/xla/xla/python/pjrt_ifrt/xla_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ limitations under the License.
#include "xla/pjrt/pjrt_executable.h"
#include "xla/python/ifrt/serdes.h"
#include "xla/python/pjrt_ifrt/xla_compiler.pb.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ limitations under the License.
#include "xla/python/ifrt/test_util.h"
#include "xla/python/pjrt_ifrt/xla_compiler.h"
#include "xla/tsl/lib/core/status_test_util.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
2 changes: 1 addition & 1 deletion third_party/xla/xla/python/pjrt_ifrt/xla_sharding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ limitations under the License.
#include "xla/python/ifrt/sharding.h"
#include "xla/shape_util.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ limitations under the License.
#include "xla/python/ifrt/sharding.h"
#include "xla/python/pjrt_ifrt/xla_sharding.h"
#include "xla/python/pjrt_ifrt/xla_sharding.pb.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ limitations under the License.
#include "xla/python/ifrt/serdes.h"
#include "xla/python/ifrt/sharding.h"
#include "xla/python/pjrt_ifrt/xla_sharding.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down
6 changes: 3 additions & 3 deletions third_party/xla/xla/python/pjrt_ifrt/xla_sharding_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ limitations under the License.
#include "xla/python/ifrt/shape.h"
#include "xla/python/ifrt/sharding.h"
#include "xla/tsl/concurrency/ref_count.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/statusor.h"

namespace xla {
namespace ifrt {
Expand Down

0 comments on commit 738fce0

Please sign in to comment.