Skip to content

Commit

Permalink
Initialize compilation env hash (pytorch#6140)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonb377 authored and chunnienc committed Dec 14, 2023
1 parent f117483 commit dabf884
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torch_xla/csrc/runtime/pjrt_computation_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ PjRtComputationClient::PjRtComputationClient() {
std::string device_str = PjRtDeviceToString(device);
string_to_device_.emplace(device_str, device);
}
comp_env_hash_ = hash_comp_env(client_, ordered_devices);

auto tracked_devices = GetLocalDevices();
tracked_devices.emplace_back(spmd_device_str);
Expand Down

0 comments on commit dabf884

Please sign in to comment.