SWDEV-522634 - Fix device properties in hipInfo (#203)
This commit is contained in:
1 parent
96cadbc9e9
commit
eb62fe9f62
3 files changed
+5
-11
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user