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

Change-Id: Id4c6977934fdd6ef2311f6e75593801f1e51983c
Este commit está contenido en:
kjayapra-amd authored and Karthik Jayaprakash committed 2021-02-15 18:20:08 -05:00
1 padre 0f14c54c04
commit 2df099df9e
11 files changed
+54 -22

No files matched your search

+2 -1
Ver fichero
@@ -1041,7 +1041,8 @@ bool VirtualGPU::create() {
// ================================================================================================
bool VirtualGPU::initPool(size_t kernarg_pool_size) {
kernarg_pool_size_ = kernarg_pool_size;
kernarg_pool_base_ = reinterpret_cast<char*>(roc_device_.hostAlloc(kernarg_pool_size_, false));
kernarg_pool_base_ = reinterpret_cast<char*>(roc_device_.hostAlloc(kernarg_pool_size_, 0,
Device::MemorySegment::kKernArg));
if (kernarg_pool_base_ == nullptr) {
return false;
}