From b7eaec76fc3d9fc13dbc437a2961bfeb9feb4486 Mon Sep 17 00:00:00 2001 From: Julia Jiang Date: Thu, 13 Feb 2025 12:44:29 -0500 Subject: [PATCH] SWDEV-513294 - fix regression on SVM sub-test failure in Conformance Change-Id: Ic2449dd34a9cd2b623d5f8fbe89fd042566a56e3 --- rocclr/device/pal/palresource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/device/pal/palresource.cpp b/rocclr/device/pal/palresource.cpp index 0af7035abe..ab931a99fd 100644 --- a/rocclr/device/pal/palresource.cpp +++ b/rocclr/device/pal/palresource.cpp @@ -2204,7 +2204,7 @@ bool MemorySubAllocator::Free(amd::Monitor* monitor, GpuMemoryReference* ref, Pa it->second->Free(offset); // If this suballocator empty, then release memory chunk // while keeping at least one chunk available, if retain_final_chunk is true - if (it->second->IsEmpty() && !(retain_final_chunk_ && heaps_.size() == 1)) { + if (it->second->IsEmpty() && (!(retain_final_chunk_ && heaps_.size() == 1) || !amd::IS_HIP)) { delete it->second; heaps_.erase(it); release_mem = true;