Merge pull request #33530 from fo40225:fix-debugmsg
PiperOrigin-RevId: 277117030 Change-Id: I7c576c3b9b4b2f98bc6223c3283c83934922ff41
This commit is contained in:
commit
a3540d16d8
@ -1544,10 +1544,17 @@ Status BaseGPUDeviceFactory::GetValidDeviceIds(
|
|||||||
cc_minor = 0;
|
cc_minor = 0;
|
||||||
}
|
}
|
||||||
LOG(INFO) << "Found device " << i << " with properties: "
|
LOG(INFO) << "Found device " << i << " with properties: "
|
||||||
<< "\nname: " << description->name() << " major: " << cc_major
|
<< "\npciBusID: " << description->pci_bus_id()
|
||||||
<< " minor: " << cc_minor
|
<< " name: " << description->name()
|
||||||
<< " memoryClockRate(GHz): " << description->clock_rate_ghz()
|
<< " computeCapability: " << cc_major << "." << cc_minor
|
||||||
<< "\npciBusID: " << description->pci_bus_id();
|
<< "\ncoreClock: " << description->clock_rate_ghz() << "GHz"
|
||||||
|
<< " coreCount: " << description->core_count()
|
||||||
|
<< " deviceMemorySize: "
|
||||||
|
<< strings::HumanReadableNumBytes(
|
||||||
|
description->device_memory_size())
|
||||||
|
<< " deviceMemoryBandwidth: "
|
||||||
|
<< strings::HumanReadableNumBytes(description->memory_bandwidth())
|
||||||
|
<< "/s";
|
||||||
#elif TENSORFLOW_USE_ROCM
|
#elif TENSORFLOW_USE_ROCM
|
||||||
int isa_version;
|
int isa_version;
|
||||||
if (!description->rocm_amdgpu_isa_version(&isa_version)) {
|
if (!description->rocm_amdgpu_isa_version(&isa_version)) {
|
||||||
@ -1555,10 +1562,17 @@ Status BaseGPUDeviceFactory::GetValidDeviceIds(
|
|||||||
isa_version = 0;
|
isa_version = 0;
|
||||||
}
|
}
|
||||||
LOG(INFO) << "Found device " << i << " with properties: "
|
LOG(INFO) << "Found device " << i << " with properties: "
|
||||||
<< "\nname: " << description->name() << "\nAMDGPU ISA: gfx"
|
<< "\npciBusID: " << description->pci_bus_id()
|
||||||
<< isa_version << "\nmemoryClockRate (GHz) "
|
<< " name: " << description->name()
|
||||||
<< description->clock_rate_ghz() << "\npciBusID "
|
<< " ROCm AMD GPU ISA: gfx" << isa_version
|
||||||
<< description->pci_bus_id();
|
<< "\ncoreClock: " << description->clock_rate_ghz() << "GHz"
|
||||||
|
<< " coreCount: " << description->core_count()
|
||||||
|
<< " deviceMemorySize: "
|
||||||
|
<< strings::HumanReadableNumBytes(
|
||||||
|
description->device_memory_size())
|
||||||
|
<< " deviceMemoryBandwidth: "
|
||||||
|
<< strings::HumanReadableNumBytes(description->memory_bandwidth())
|
||||||
|
<< "/s";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user