From 05216e1f54bd5f1ae8656baeaa8e9543a6f09c59 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 12 Oct 2017 17:59:29 -0400
Subject: [PATCH] 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
---
rocclr/runtime/device/rocm/rocdevice.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/rocclr/runtime/device/rocm/rocdevice.cpp b/rocclr/runtime/device/rocm/rocdevice.cpp
index 23672330e7..e197ff959a 100644
--- a/rocclr/runtime/device/rocm/rocdevice.cpp
+++ b/rocclr/runtime/device/rocm/rocdevice.cpp
@@ -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_;