Skip to content

Commit 2baef35

Browse files
JackCaoGroot
andauthored
Update the tf pin to 2023 01/23 (#4474)
* Update the tf pin to 2023 01/18 * Update CAPI path * update tf pin * Update libtpu * Update libtpu again to 01/24 Co-authored-by: root <root@t1v-n-7513beeb-w-0.us-central1-a.c.tpu-pytorch.internal>
1 parent b5d6be8 commit 2baef35

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
base_dir = os.path.dirname(os.path.abspath(__file__))
6161
third_party_path = os.path.join(base_dir, 'third_party')
6262

63-
_libtpu_version = '0.1.dev20221223'
63+
_libtpu_version = '0.1.dev20230124'
6464
_libtpu_storage_path = f'https://storage.googleapis.com/cloud-tpu-tpuvm-artifacts/wheels/libtpu-nightly/libtpu_nightly-{_libtpu_version}-py3-none-any.whl'
6565

6666

third_party/tensorflow

Submodule tensorflow updated 2753 files

third_party/xla_client/pjrt_computation_client.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "tensorflow/compiler/xla/pjrt/tfrt_cpu_pjrt_client.h"
1616
#include "tensorflow/compiler/xla/pjrt/tpu_client.h"
1717
#include "tensorflow/compiler/xla/shape.h"
18-
#include "tensorflow/compiler/xla/stream_executor/tpu/pjrt_api.h"
18+
#include "tensorflow/compiler/xla/pjrt/pjrt_api.h"
1919
#include "tensorflow/compiler/xla/xla_client/computation_client.h"
2020
#include "tensorflow/compiler/xla/xla_client/debug_macros.h"
2121
#include "tensorflow/compiler/xla/xla_client/env_vars.h"
@@ -61,7 +61,7 @@ PjRtComputationClient::PjRtComputationClient() {
6161
client_ = xla::GetTpuClient(max_inflight_computations).value();
6262
} else if (device_type == "TPU_C_API") {
6363
TF_VLOG(1) << "Initializing PjRt C API client...";
64-
XLA_CHECK_OK(stream_executor::tpu::LoadPjrtPlugin(
64+
XLA_CHECK_OK(pjrt::LoadPjrtPlugin(
6565
"tpu", sys_util::GetEnvString(env::kEnvTpuLibraryPath, "libtpu.so")));
6666
client_ = std::move(xla::GetCApiClient("TPU").value());
6767
} else if (device_type == "GPU") {

third_party/xla_client/xrt_computation_client.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "absl/strings/str_split.h"
1515
#include "tensorflow/cc/ops/const_op.h"
1616
#include "tensorflow/compiler/xla/shape_util.h"
17-
#include "tensorflow/compiler/xla/stream_executor/lib/mathutil.h"
1817
#include "tensorflow/compiler/xla/util.h"
1918
#include "tensorflow/compiler/xla/xla_client/env_vars.h"
2019
#include "tensorflow/compiler/xla/xla_client/multi_wait.h"
@@ -27,6 +26,7 @@
2726
#include "tensorflow/core/framework/allocator.h"
2827
#include "tensorflow/core/profiler/lib/traceme.h"
2928
#include "tensorflow/core/util/device_name_utils.h"
29+
#include "tensorflow/tsl/lib/math/math_util.h"
3030

3131
namespace xla {
3232
namespace {
@@ -76,7 +76,7 @@ class TensorAllocator : public tensorflow::Allocator {
7676
alignment = std::max<size_t>(alignment, sizeof(void*));
7777
// To call aligned_alloc(), num_bytes must be multiple of alignment.
7878
num_bytes =
79-
stream_executor::port::MathUtil::CeilOfRatio(num_bytes, alignment) * alignment;
79+
tsl::MathUtil::CeilOfRatio(num_bytes, alignment) * alignment;
8080

8181
AllocKey alloc_key = {alignment, num_bytes};
8282
void* block = nullptr;

0 commit comments

Comments
 (0)