fix: return false for allocInUse when gpu hang detected

Related-To: NEO-16105

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-09-16 12:25:41 +00:00
committed by Compute-Runtime-Automation
parent 64c47ff467
commit 5d7250ae6f
4 changed files with 28 additions and 4 deletions

View File

@@ -206,7 +206,7 @@ class MemoryManager {
void waitForDeletions();
MOCKABLE_VIRTUAL void waitForEnginesCompletion(GraphicsAllocation &graphicsAllocation);
MOCKABLE_VIRTUAL bool allocInUse(GraphicsAllocation &graphicsAllocation) const;
MOCKABLE_VIRTUAL bool allocInUse(GraphicsAllocation &graphicsAllocation);
void cleanTemporaryAllocationListOnAllEngines(bool waitForCompletion);
bool isAsyncDeleterEnabled() const;
@@ -439,6 +439,7 @@ class MemoryManager {
std::unique_ptr<std::atomic<size_t>[]> localMemAllocsSize;
std::atomic<size_t> sysMemAllocsSize;
std::map<std::pair<AllocationType, bool>, CustomHeapAllocatorConfig> customHeapAllocators;
std::chrono::high_resolution_clock::time_point lastGpuHangCheck;
};
std::unique_ptr<DeferredDeleter> createDeferredDeleter();