SWDEV-522634 - Fix device properties in hipInfo (#203)

Tá an tiomantas seo le fáil i:
Jiang, Julia údaraithe agus GitHub tiomanta 2025-04-29 11:29:47 -04:00
1 tuismitheoir 96cadbc9e9
tiomantas eb62fe9f62
3 comhad athraithe
+5 -11

Níor tháinig aon chomhaid le do chuardach

+2 -8
Féach ar an gComhad
@@ -1138,14 +1138,6 @@ bool Device::populateOCLDeviceConstants() {
}
info_.wallClockFrequency_ = static_cast<uint32_t>(wallClockFrequency / 1000); // in KHz
if (HSA_STATUS_SUCCESS !=
hsa_agent_get_info(bkendDevice_,
static_cast<hsa_agent_info_t>(HSA_AMD_AGENT_INFO_MEMORY_WIDTH),
&info_.globalMemChannels_)) {
return false;
}
assert(info_.globalMemChannels_ > 0);
if (HSA_STATUS_SUCCESS !=
hsa_agent_get_info(bkendDevice_,
static_cast<hsa_agent_info_t>(HSA_AMD_AGENT_INFO_DRIVER_NODE_ID),
@@ -1566,6 +1558,8 @@ bool Device::populateOCLDeviceConstants() {
return false;
}
info_.globalMemChannels_ = info_.vramBusBitWidth_ / 32;
if (HSA_STATUS_SUCCESS !=
hsa_agent_get_info(bkendDevice_,
static_cast<hsa_agent_info_t>(HSA_AMD_AGENT_INFO_NUM_SIMDS_PER_CU),