From 9d38ca0d22f8696aca01c0cf0b73053641ccc587 Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Tue, 27 May 2025 20:25:24 +0000 Subject: [PATCH] rocr: Fix compile error when using clang --- runtime/hsa-runtime/core/inc/amd_gpu_agent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/core/inc/amd_gpu_agent.h b/runtime/hsa-runtime/core/inc/amd_gpu_agent.h index 87bad25786..e1bbef7f4b 100644 --- a/runtime/hsa-runtime/core/inc/amd_gpu_agent.h +++ b/runtime/hsa-runtime/core/inc/amd_gpu_agent.h @@ -446,7 +446,7 @@ class GpuAgent : public GpuAgentInt { _mm_sfence(); *((uint8_t*)ptr + size - 1) = *((uint8_t*)ptr + size - 1); _mm_mfence(); - auto readback = *reinterpret_cast(ptr + size - 1); + auto readback = *(reinterpret_cast(ptr) + size - 1); } }