Skip to content

Commit

Permalink
sync with xla
Browse files Browse the repository at this point in the history
  • Loading branch information
zpcore committed Jul 18, 2024
1 parent eeded81 commit 21823e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions torch_xla/csrc/runtime/pjrt_compilation_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ PjRtCompilationClient::PjRtCompilationClient(
env::kEnvTpuLibraryPath,
sys_util::GetEnvString(env::kEnvInferredTpuLibraryPath, "libtpu.so"));
XLA_CHECK_OK(pjrt::LoadPjrtPlugin("tpu", tpu_library_path).status());
xla::Status tpu_status = pjrt::InitializePjrtPlugin("tpu");
absl::Status tpu_status = pjrt::InitializePjrtPlugin("tpu");
XLA_CHECK_OK(tpu_status);

absl::flat_hash_map<std::string, xla::PjRtValueType> create_options = {};
Expand Down Expand Up @@ -626,7 +626,7 @@ int PjRtCompilationClient::GetNumProcesses() const {
};

const absl::flat_hash_map<
std::string, torch_xla::runtime::ComputationClient::DeviceAttribute>&
std::string, torch_xla::runtime::ComputationClient::DeviceAttribute>
PjRtCompilationClient::GetDeviceAttributes(const std::string& device) {
return PjRtCompilationClient::StringToPjRtDevice(device)->Attributes();
}
Expand Down
2 changes: 1 addition & 1 deletion torch_xla/csrc/runtime/pjrt_compilation_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class PjRtCompilationClient : public ComputationClient {
int GetNumProcesses() const override;

const absl::flat_hash_map<
std::string, torch_xla::runtime::ComputationClient::DeviceAttribute>&
std::string, torch_xla::runtime::ComputationClient::DeviceAttribute>
GetDeviceAttributes(const std::string& device) override;

void SetReplicationDevices(
Expand Down

0 comments on commit 21823e3

Please sign in to comment.