mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
fix: support alignments in host and shared UnifiedMemoryAllocation
Related-To: LOCI-4334 Signed-off-by: Lu, Wenbin <wenbin.lu@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b9837ef068
commit
4de792cee0
@@ -19,7 +19,7 @@ bool operator<(const HeapChunk &hc1, const HeapChunk &hc2) {
|
||||
}
|
||||
|
||||
uint64_t HeapAllocator::allocateWithCustomAlignment(size_t &sizeToAllocate, size_t alignment) {
|
||||
if (alignment == 0) {
|
||||
if (alignment < this->allocationAlignment) {
|
||||
alignment = this->allocationAlignment;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user