Revert "feature: add pooling of USM global/constant surface"

This reverts commit 68698c9a74.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2025-09-14 15:53:44 +02:00
committed by Compute-Runtime-Automation
parent 28e3bcfea2
commit e2d12e1742
15 changed files with 38 additions and 601 deletions

View File

@@ -19,24 +19,6 @@ class MockUsmMemAllocPool : public UsmMemAllocPool {
using UsmMemAllocPool::poolMemoryType;
using UsmMemAllocPool::poolSize;
bool initialize(SVMAllocsManager *svmMemoryManager, const UnifiedMemoryProperties &memoryProperties, size_t poolSize, size_t minServicedSize, size_t maxServicedSize) override {
if (callBaseInitialize) {
return UsmMemAllocPool::initialize(svmMemoryManager, memoryProperties, poolSize, minServicedSize, maxServicedSize);
}
return initializeResult;
}
bool callBaseInitialize = true;
bool initializeResult = false;
void *createUnifiedMemoryAllocation(size_t size, const UnifiedMemoryProperties &memoryProperties) override {
if (callBaseCreateUnifiedMemoryAllocation) {
return UsmMemAllocPool::createUnifiedMemoryAllocation(size, memoryProperties);
}
return createUnifiedMemoryAllocationResult;
}
bool callBaseCreateUnifiedMemoryAllocation = true;
void *createUnifiedMemoryAllocationResult = nullptr;
void cleanup() override {
++cleanupCalled;
if (callBaseCleanup) {
@@ -45,12 +27,6 @@ class MockUsmMemAllocPool : public UsmMemAllocPool {
}
uint32_t cleanupCalled = 0u;
bool callBaseCleanup = true;
bool freeSVMAlloc(const void *ptr, bool blocking) override {
++freeSVMAllocCalled;
return UsmMemAllocPool::freeSVMAlloc(ptr, blocking);
};
uint32_t freeSVMAllocCalled = 0u;
};
class MockUsmMemAllocPoolsManager : public UsmMemAllocPoolsManager {