SWDEV-508632 - Align address to 2 MBs for hidden heap allocation. (#29)

Этот коммит содержится в:
Patel, Jaydeepkumar authored and GitHub committed 2025-04-02 16:33:29 +05:30
1 родитель 98f1db181c
Коммит b5c9cbc236
10 files changed
+33 -24

No files matched your search

+4 -2
Просмотреть файл
@@ -77,7 +77,8 @@ void HostMemoryReference::deallocateMemory(const Context& context) {
}
}
Memory::Memory(Context& context, Type type, Flags flags, size_t size, void* svmPtr)
Memory::Memory(Context& context, Type type, Flags flags, size_t size, void* svmPtr,
size_t alignment)
: numDevices_(0),
deviceMemories_(NULL),
destructorCallbacks_(NULL),
@@ -96,7 +97,8 @@ Memory::Memory(Context& context, Type type, Flags flags, size_t size, void* svmP
svmHostAddress_(svmPtr),
resOffset_(0),
flagsEx_(0),
lockMemoryOps_(true) /* Memory Ops Lock */ {
lockMemoryOps_(true),
alignment_(alignment) /* Memory Ops Lock */ {
svmPtrCommited_ = (flags & CL_MEM_SVM_FINE_GRAIN_BUFFER) ? true : false;
canBeCached_ = true;
}