diff --git a/runtime/hsa-runtime/core/runtime/runtime.cpp b/runtime/hsa-runtime/core/runtime/runtime.cpp index 40ebc35e7f..39cf2d21d0 100644 --- a/runtime/hsa-runtime/core/runtime/runtime.cpp +++ b/runtime/hsa-runtime/core/runtime/runtime.cpp @@ -2102,7 +2102,6 @@ hsa_status_t Runtime::SvmPrefetch(void* ptr, size_t size, hsa_agent_t agent, Agent* Runtime::GetSVMPrefetchAgent(void* ptr, size_t size) { uintptr_t base = reinterpret_cast(AlignDown(ptr, 4096)); uintptr_t end = AlignUp(reinterpret_cast(ptr) + size, 4096); - size_t len = end - base; std::vector> holes;