mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add unit test for append memory prefetch for regular command list
Related-To: NEO-6740 Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
3de620af15
commit
601ace6a25
@ -8,10 +8,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/memory_manager/prefetch_manager.h"
|
||||
#include "shared/source/memory_manager/unified_memory_manager.h"
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
class MockPrefetchManager : public PrefetchManager {
|
||||
public:
|
||||
using PrefetchManager::allocations;
|
||||
|
||||
void migrateAllocationsToGpu(SVMAllocsManager &unifiedMemoryManager, Device &device) override {
|
||||
PrefetchManager::migrateAllocationsToGpu(unifiedMemoryManager, device);
|
||||
migrateAllocationsToGpuCalled = true;
|
||||
}
|
||||
|
||||
bool migrateAllocationsToGpuCalled = false;
|
||||
};
|
||||
|
Reference in New Issue
Block a user