refactor: usm reuse to unique ptr

Change usm allocation cache in usm manager to unique ptr

Related-To: NEO-6893

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2025-03-07 13:32:25 +00:00
committed by Compute-Runtime-Automation
parent 110359c6dc
commit 2170f5ca88
6 changed files with 263 additions and 250 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2024 Intel Corporation
* Copyright (C) 2018-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -355,7 +355,7 @@ TEST_F(KernelArgBufferTest, givenKernelExecInfoWithIndirectStatelessAccessWhenHa
return;
}
pContext->getHostMemAllocPool().cleanup();
svmAllocationsManager->trimUSMHostAllocCache();
svmAllocationsManager->cleanupUSMAllocCaches();
mockKernel.unifiedMemoryControls.indirectHostAllocationsAllowed = true;
EXPECT_FALSE(mockKernel.hasIndirectStatelessAccessToHostMemory());