diff --git a/torch_xla/csrc/runtime/pjrt_computation_client.cc b/torch_xla/csrc/runtime/pjrt_computation_client.cc index 187c2f35c7e1..14914b6b182f 100644 --- a/torch_xla/csrc/runtime/pjrt_computation_client.cc +++ b/torch_xla/csrc/runtime/pjrt_computation_client.cc @@ -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);