SWDEV-459254 - Overwrite cacheline size to 256 for gfx12, as it is used for kernarg alignment.
Change-Id: Ia6acf312ee84f6dde1c830fc21f10d3a8a9de5ee
[ROCm/clr commit: dd1dd86fd7]
This commit is contained in:
committato da
Maneesh Gupta
parent
6a0f554fa6
commit
04ed74552f
@@ -1208,6 +1208,11 @@ bool Device::populateOCLDeviceConstants() {
|
||||
}
|
||||
assert(info_.globalMemCacheLineSize_ > 0);
|
||||
|
||||
// override cache line size to 256 for gfx12, as it is used for kern arg alignment.
|
||||
if ((isa().versionMajor() >= 12) && (info_.globalMemCacheLineSize_ < 256)) {
|
||||
info_.globalMemCacheLineSize_ = 256;
|
||||
}
|
||||
|
||||
uint32_t cachesize[4] = {0};
|
||||
if (HSA_STATUS_SUCCESS !=
|
||||
hsa_agent_get_info(bkendDevice_, HSA_AGENT_INFO_CACHE_SIZE, cachesize)) {
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user