diff --git a/third_party/xla/xla/python/pjrt_ifrt/BUILD b/third_party/xla/xla/python/pjrt_ifrt/BUILD index eae7add7bb3972..b9bfa6757b8041 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/BUILD +++ b/third_party/xla/xla/python/pjrt_ifrt/BUILD @@ -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", @@ -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", ], ) @@ -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, ) @@ -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", ], ) @@ -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, ) @@ -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", ], ) @@ -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", @@ -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", ], ) @@ -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, ) @@ -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, ) @@ -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", @@ -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", ], ) @@ -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", @@ -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", ], ) diff --git a/third_party/xla/xla/python/pjrt_ifrt/basic_string_array.cc b/third_party/xla/xla/python/pjrt_ifrt/basic_string_array.cc index 540375a3392a06..1aff2436db3e62 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/basic_string_array.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/basic_string_array.cc @@ -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, diff --git a/third_party/xla/xla/python/pjrt_ifrt/basic_string_array_test.cc b/third_party/xla/xla/python/pjrt_ifrt/basic_string_array_test.cc index 2d1ece5b1cb8cf..cd6e72cbc65f26 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/basic_string_array_test.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/basic_string_array_test.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/pjrt_array.cc b/third_party/xla/xla/python/pjrt_ifrt/pjrt_array.cc index db429bea24f83a..2c8a994d7d982c 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/pjrt_array.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/pjrt_array.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/pjrt_client.cc b/third_party/xla/xla/python/pjrt_ifrt/pjrt_client.cc index 74994d783e4fd1..4f6efb9aad7c92 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/pjrt_client.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/pjrt_client.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/pjrt_client.h b/third_party/xla/xla/python/pjrt_ifrt/pjrt_client.h index 634f74d398a1ff..ca33f202d01d06 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/pjrt_client.h +++ b/third_party/xla/xla/python/pjrt_ifrt/pjrt_client.h @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/pjrt_compiler.cc b/third_party/xla/xla/python/pjrt_ifrt/pjrt_compiler.cc index 407ca4bd5da199..c789247a567601 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/pjrt_compiler.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/pjrt_compiler.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/pjrt_cpu_client_multi_process_test_lib.cc b/third_party/xla/xla/python/pjrt_ifrt/pjrt_cpu_client_multi_process_test_lib.cc index 4d382932f0f504..ac774c5799c914 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/pjrt_cpu_client_multi_process_test_lib.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/pjrt_cpu_client_multi_process_test_lib.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/pjrt_cpu_client_test_lib.cc b/third_party/xla/xla/python/pjrt_ifrt/pjrt_cpu_client_test_lib.cc index f782b7fc644285..300a0239ebc6a2 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/pjrt_cpu_client_test_lib.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/pjrt_cpu_client_test_lib.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/pjrt_executable.cc b/third_party/xla/xla/python/pjrt_ifrt/pjrt_executable.cc index 44706a41b54f59..f243a7f8d7d508 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/pjrt_executable.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/pjrt_executable.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/pjrt_executable.h b/third_party/xla/xla/python/pjrt_ifrt/pjrt_executable.h index b6c8c359133bfe..4bcc316181117c 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/pjrt_executable.h +++ b/third_party/xla/xla/python/pjrt_ifrt/pjrt_executable.h @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/pjrt_remap.cc b/third_party/xla/xla/python/pjrt_ifrt/pjrt_remap.cc index c77b0e5e608fe0..f767496a1d83e8 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/pjrt_remap.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/pjrt_remap.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/pjrt_remap.h b/third_party/xla/xla/python/pjrt_ifrt/pjrt_remap.h index ed9083e1206e6a..1dde760ef801f0 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/pjrt_remap.h +++ b/third_party/xla/xla/python/pjrt_ifrt/pjrt_remap.h @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/xla_compiler.cc b/third_party/xla/xla/python/pjrt_ifrt/xla_compiler.cc index 56eaf7ad2f2f4b..56b90fd84ac65d 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/xla_compiler.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/xla_compiler.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/xla_executable_impl_test_lib.cc b/third_party/xla/xla/python/pjrt_ifrt/xla_executable_impl_test_lib.cc index 0921f766063ae9..dd66b5416e33d6 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/xla_executable_impl_test_lib.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/xla_executable_impl_test_lib.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/xla_sharding.cc b/third_party/xla/xla/python/pjrt_ifrt/xla_sharding.cc index 38d071a3ec6161..e5324eec58fdd8 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/xla_sharding.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/xla_sharding.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_serdes.cc b/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_serdes.cc index 50bc5997b27746..feb2be593bc5f5 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_serdes.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_serdes.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_serdes_test.cc b/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_serdes_test.cc index 2474b51e3a50b7..e30f6da38115c8 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_serdes_test.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_serdes_test.cc @@ -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 { diff --git a/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_test.cc b/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_test.cc index 0f64d5c2cf3702..0c5a8f735bcfcb 100644 --- a/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_test.cc +++ b/third_party/xla/xla/python/pjrt_ifrt/xla_sharding_test.cc @@ -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 {