mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Introduced standard heap with 2MB alignment on Linux
Related-To: NEO-5507 Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c1cabb505a
commit
049166688c
@@ -23,6 +23,7 @@ enum class HeapIndex : uint32_t {
|
||||
HEAP_EXTERNAL = 3u,
|
||||
HEAP_STANDARD,
|
||||
HEAP_STANDARD64KB,
|
||||
HEAP_STANDARD2MB,
|
||||
HEAP_SVM,
|
||||
HEAP_EXTENDED,
|
||||
HEAP_EXTERNAL_FRONT_WINDOW,
|
||||
@@ -83,7 +84,8 @@ class GfxPartition {
|
||||
}
|
||||
|
||||
uint64_t getHeapMinimalAddress(HeapIndex heapIndex) {
|
||||
if (heapIndex == HeapIndex::HEAP_EXTERNAL_DEVICE_FRONT_WINDOW ||
|
||||
if (heapIndex == HeapIndex::HEAP_SVM ||
|
||||
heapIndex == HeapIndex::HEAP_EXTERNAL_DEVICE_FRONT_WINDOW ||
|
||||
heapIndex == HeapIndex::HEAP_EXTERNAL_FRONT_WINDOW ||
|
||||
heapIndex == HeapIndex::HEAP_INTERNAL_DEVICE_FRONT_WINDOW ||
|
||||
heapIndex == HeapIndex::HEAP_INTERNAL_FRONT_WINDOW) {
|
||||
@@ -103,7 +105,7 @@ class GfxPartition {
|
||||
|
||||
bool isLimitedRange() { return getHeap(HeapIndex::HEAP_SVM).getSize() == 0ull; }
|
||||
|
||||
static const uint64_t heapGranularity = MemoryConstants::pageSize64k;
|
||||
static const uint64_t heapGranularity = 2 * MemoryConstants::megaByte;
|
||||
static constexpr size_t externalFrontWindowPoolSize = 16 * MemoryConstants::megaByte;
|
||||
static constexpr size_t internalFrontWindowPoolSize = 1 * MemoryConstants::megaByte;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user