mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Move a GfxPartition to the core dir
Related-To: NEO-3677 Change-Id: Ia89ba93eefbb2921ef7d64bde7ed4114a0c78e0d Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
7d1f0f9f0e
commit
a79b682fc2
23
core/os_interface/os_memory.h
Normal file
23
core/os_interface/os_memory.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <cstddef>
|
||||
#include <memory>
|
||||
|
||||
namespace NEO {
|
||||
|
||||
struct OSMemory {
|
||||
public:
|
||||
static std::unique_ptr<OSMemory> create();
|
||||
|
||||
virtual ~OSMemory() = default;
|
||||
virtual void *reserveCpuAddressRange(size_t sizeToReserve) = 0;
|
||||
virtual void releaseCpuAddressRange(void *reservedCpuAddressRange, size_t reservedSize) = 0;
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user