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

Change-Id: Id4c6977934fdd6ef2311f6e75593801f1e51983c


[ROCm/clr commit: 2df099df9e]
这个提交包含在:
kjayapra-amd 编写, Karthik Jayaprakash 于 2021-02-15 18:20:08 -05:00 提交
1 父节点 4da1282882
当前提交 4583cbafee
11 个文件已更改
+54 -22

没有与搜索条件相匹配的文件

+3 -1
查看文件
@@ -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);
}