mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
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:
committed by
Compute-Runtime-Automation
parent
64c47ff467
commit
5d7250ae6f
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user