mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Add mechanism to migrate multi root device memory
invalidate TLB cache if kernel requires migration Related-To: NEO-3691 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
714a1ebf53
commit
6f3c89decb
22
opencl/source/memory_manager/migration_controller.h
Normal file
22
opencl/source/memory_manager/migration_controller.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
|
||||
namespace NEO {
|
||||
class MemoryManager;
|
||||
class CommandStreamReceiver;
|
||||
class Context;
|
||||
class MultiGraphicsAllocation;
|
||||
class MemObj;
|
||||
class MigrationController {
|
||||
public:
|
||||
static void handleMigration(Context &context, CommandStreamReceiver &targetCsr, MemObj *memObj);
|
||||
static void migrateMemory(Context &context, MemoryManager &memoryManager, MemObj *memObj, uint32_t targetRootDeviceIndex);
|
||||
};
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user