SWDEV-270013 - Allocate kernel_arguments from kern_arg & finegrain pool instead of coarse grain.
Change-Id: Id4c6977934fdd6ef2311f6e75593801f1e51983c
This commit is contained in:
zatwierdzone przez
Karthik Jayaprakash
rodzic
0f14c54c04
commit
2df099df9e
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user