P4 to Git Change 1469411 by wchau@wchau_OCL_boltzmann on 2017/10/12 17:51:56
SWDEV-120036 - Supporting the cl_amd_device_attribute_query on the ROC device
- divided the query of HSA_AMD_AGENT_INFO_MEMORY_WIDTH by 32 to obtained the globale memory channels as done in ORCA and PAL
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#69 edit
[ROCm/clr commit: 05216e1f54]
This commit is contained in:
@@ -1108,6 +1108,7 @@ bool Device::populateOCLDeviceConstants() {
|
||||
hsa_agent_get_info(_bkendDevice, (hsa_agent_info_t)HSA_AMD_AGENT_INFO_MEMORY_WIDTH, &info_.globalMemChannels_)) {
|
||||
return false;
|
||||
}
|
||||
info_.globalMemChannels_ /= 32;
|
||||
info_.globalMemChannelBanks_ = 4;
|
||||
info_.globalMemChannelBankWidth_ = deviceInfo_.memChannelBankWidth_;
|
||||
info_.localMemSizePerCU_ = deviceInfo_.localMemSizePerCU_;
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user