From 3e286607cae61065fdf8770c63f00e2888c7b881 Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Thu, 31 Aug 2023 13:50:49 +0000 Subject: [PATCH] Fix for always returning 64 for cacheline size Change-Id: I0e31d306a2e051ecb9ac019c4e6f5efa25eabba0 [ROCm/ROCR-Runtime commit: 4770b210f6159cd83c3612c5791e011a80220715] --- .../runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index 33cbca3f7a..0893246671 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -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.