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