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

Change-Id: Id4c6977934fdd6ef2311f6e75593801f1e51983c
This commit is contained in:
kjayapra-amd
2021-02-02 12:22:47 -05:00
committed by Karthik Jayaprakash
parent 0f14c54c04
commit 2df099df9e
11 changed files with 54 additions and 22 deletions
+4 -2
View File
@@ -550,7 +550,8 @@ bool PerfCounterProfile::initialize() {
}
if (cmd_buf.ptr == nullptr) {
void *buf_ptr = roc_device_.hostAlloc(profile_.command_buffer.size, alignment, 1);
void *buf_ptr = roc_device_.hostAlloc(profile_.command_buffer.size, alignment,
Device::MemorySegment::kAtomics);
if (buf_ptr != nullptr) {
profile_.command_buffer.ptr = buf_ptr;
}
@@ -565,7 +566,8 @@ bool PerfCounterProfile::initialize() {
}
if (out_buf.ptr == nullptr) {
void *buf_ptr = roc_device_.hostAlloc(profile_.output_buffer.size, alignment, 1);
void *buf_ptr = roc_device_.hostAlloc(profile_.output_buffer.size, alignment,
Device::MemorySegment::kAtomics);
if (buf_ptr != nullptr) {
profile_.output_buffer.ptr = buf_ptr;
}