mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Move SVM allocs memory manager to L0::Context (1/N)
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
47256642c3
commit
9080e2ee5b
@@ -128,6 +128,10 @@ struct Context : _ze_context_handle_t {
|
||||
virtual ze_result_t createImage(ze_device_handle_t hDevice,
|
||||
const ze_image_desc_t *desc,
|
||||
ze_image_handle_t *phImage) = 0;
|
||||
virtual NEO::MemoryManager *getMemoryManager() = 0;
|
||||
virtual void setMemoryManager(NEO::MemoryManager *memoryManager) = 0;
|
||||
virtual NEO::SVMAllocsManager *getSvmAllocsManager() = 0;
|
||||
virtual void setSvmAllocsManager(NEO::SVMAllocsManager *) = 0;
|
||||
|
||||
static Context *fromHandle(ze_context_handle_t handle) { return static_cast<Context *>(handle); }
|
||||
inline ze_context_handle_t toHandle() { return this; }
|
||||
|
||||
Reference in New Issue
Block a user