diff --git a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index 33cbca3f7a..0893246671 100644 --- a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/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.