Fix for always returning 64 for cacheline size

Change-Id: I0e31d306a2e051ecb9ac019c4e6f5efa25eabba0
This commit is contained in:
David Yat Sin
2023-08-31 13:50:49 +00:00
parent 1e7b078628
commit 4770b210f6
@@ -1339,7 +1339,7 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
for (auto& cache : cache_props_) {
if ((cache.CacheLevel == 2) && (cache.CacheLineSize != 0)) {
*((uint32_t*)value) = cache.CacheLineSize;
break;
return HSA_STATUS_SUCCESS;
}
}
// Fallback for when KFD is returning zero.