mirror of
https://github.com/intel/compute-runtime.git
synced 2025-06-28 17:58:30 +08:00

unit_test/fixtures/mock_aub_center_fixture.h -> common/fixtures unit_test/helpers/raii_hw_helper.h -> common/helpers unit_test/helpers/static_size3.h -> common/helpers unit_test/helpers/ult_limits.h -> common/helpers unit_test/memory_manager/mock_prefetch_manager.h -> common/memory_manager common/mocks/mock_aub_stream.h -> unit_test/mocks common/mocks/mock_csr_simulated_common_hw.h -> unit_test/mocks common/mocks/mock_direct_submission_diagnostic_collector.h -> unit_test/mocks common/mocks/mock_lrca_helper.h -> unit_test/mocks common/mocks/mock_tbx_stream.h -> unit_test/mocks common/mocks/linux/mock_os_context_linux.h -> unit_test/mocks/linux common/mocks/windows/mock_wddm_direct_submission.h -> unit_test/mocks/windows Related-To: NEO-6524 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
26 lines
635 B
C++
26 lines
635 B
C++
/*
|
|
* Copyright (C) 2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#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;
|
|
};
|