Skip to content

Commit 00272c3

Browse files
authored
Remove legacy StreamExecutor TPU client from the build (#5640)
1 parent a0a3aba commit 00272c3

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

torch_xla/csrc/runtime/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ cc_library(
9898
"@xla//xla/pjrt/distributed",
9999
"@xla//xla/pjrt/gpu:se_gpu_pjrt_client",
100100
"@xla//xla/service:gpu_plugin",
101-
"@xla//xla/pjrt:tpu_client",
102101
"@xla//xla/pjrt:pjrt_client",
103102
"@xla//xla/pjrt:tfrt_cpu_pjrt_client",
104103
"@xla//xla/pjrt:pjrt_c_api_client",

torch_xla/csrc/runtime/pjrt_computation_client.cc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <unordered_set>
55
#include <vector>
66

7-
// TODO: fix absl headers
87
#include "absl/strings/ascii.h"
98
#include "absl/types/span.h"
109
#include "pjrt_computation_client.h"
@@ -27,7 +26,6 @@
2726
#include "xla/pjrt/pjrt_client.h"
2827
#include "xla/pjrt/pjrt_executable.h"
2928
#include "xla/pjrt/tfrt_cpu_pjrt_client.h"
30-
#include "xla/pjrt/tpu_client.h"
3129
#include "xla/shape.h"
3230

3331
using xla::internal::XlaBuilderFriend;
@@ -117,10 +115,7 @@ PjRtComputationClient::PjRtComputationClient() {
117115
XLA_CHECK(tpu_status.ok());
118116
client_ = std::move(xla::GetCApiClient("TPU").value());
119117
} else if (device_type == "TPU_LEGACY") {
120-
TF_VLOG(1) << "Initializing PjRt StreamExecutor TPU client...";
121-
int64_t max_inflight_computations = sys_util::GetEnvInt(
122-
env::kEnvPjRtTpuMaxInflightComputations, /*defval=*/32);
123-
client_ = xla::GetTpuClient(max_inflight_computations).value();
118+
XLA_ERROR() << "TPU_LEGACY client is no longer available.";
124119
} else if (device_type == "GPU") {
125120
TF_VLOG(1) << "Initializing PjRt GPU client...";
126121
bool async = sys_util::GetEnvBool(env::kEnvPjrtAsyncGpuClient, true);

0 commit comments

Comments
 (0)