SWDEV-270013 - Allocate kernel_arguments from kern_arg & finegrain pool instead of coarse grain.

Change-Id: Id4c6977934fdd6ef2311f6e75593801f1e51983c
Bu işleme şunda yer alıyor:
kjayapra-amd authored and Karthik Jayaprakash committed 2021-02-15 18:20:08 -05:00
1 ebeveyn 0f14c54c04
işleme 2df099df9e
11 files changed
+54 -22

No files matched your search

+3 -1
Dosyayı Görüntüle
@@ -284,7 +284,9 @@ int Context::create(const intptr_t* properties) {
void* Context::hostAlloc(size_t size, size_t alignment, bool atomics) const {
if (customHostAllocDevice_ != NULL) {
return customHostAllocDevice_->hostAlloc(size, alignment, atomics);
return customHostAllocDevice_->hostAlloc(size, alignment, atomics
? Device::MemorySegment::kAtomics
: Device::MemorySegment::kNoAtomics);
}
return AlignedMemory::allocate(size, alignment);
}