fix: submit dummy exec to pin memory during zeContextMakeMemoryResident call

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>

Related-To: NEO-11879
This commit is contained in:
Maciej Plewka
2024-08-30 13:20:57 +02:00
committed by Compute-Runtime-Automation
parent 32fb476f6d
commit f9b87d53e6
35 changed files with 244 additions and 106 deletions

View File

@@ -64,7 +64,7 @@ GraphicsAllocation *BindlessHeapsHelper::getHeapAllocation(size_t heapSize, size
GraphicsAllocation *allocation = memManager->allocateGraphicsMemoryWithProperties(properties);
MemoryOperationsHandler *memoryOperationsIface = rootDevice->getRootDeviceEnvironmentRef().memoryOperationsInterface.get();
auto result = memoryOperationsIface->makeResident(rootDevice, ArrayRef<NEO::GraphicsAllocation *>(&allocation, 1));
auto result = memoryOperationsIface->makeResident(rootDevice, ArrayRef<NEO::GraphicsAllocation *>(&allocation, 1), false);
if (result != NEO::MemoryOperationsStatus::success) {
memManager->freeGraphicsMemory(allocation);
return nullptr;