Skip to content

Commit e62b00d

Browse files
hawkinsptensorflower-gardener
authored andcommitted
Make CPU devices report as cpu:0 instead of TFRT_CPU_0.
The "TFRT" is vestigial and confusing. The new string matches how we report GPUs (e.g., cuda:0). PiperOrigin-RevId: 891681679
1 parent c1b8d76 commit e62b00d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

third_party/xla/xla/pjrt/plugin/xla_cpu/cpu_device_description.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CpuDeviceDescription::CpuDeviceDescription(int process_id, int local_device_id)
3131
: id_(PackCpuDeviceId(process_id, local_device_id)),
3232
process_index_(process_id),
3333
local_hardware_id_(local_device_id) {
34-
debug_string_ = absl::StrCat("TFRT_CPU_", id_.value());
34+
debug_string_ = absl::StrCat("cpu:", id_.value());
3535
to_string_ = absl::StrCat("CpuDevice(id=", id_.value(), ")");
3636
}
3737

0 commit comments

Comments
 (0)