SWDEV-301667 - Use large signal pool

Use large signal pool if profiler is connected or profiling forced
enabled. This is needed to mitigate signal creation overhead when
profiling as signals are attached to every packet and deeper batch may
show overhead of signal allocation.

Change-Id: I8034b8a20b55328b87d593bf044f59672f9653e8
这个提交包含在:
Saleel Kudchadker
2023-08-24 17:36:00 +00:00
父节点 077311153a
当前提交 1ec0ba3537
修改 2 个文件,包含 7 行新增5 行删除
+3
查看文件
@@ -341,6 +341,9 @@ VirtualGPU::HwQueueTracker::~HwQueueTracker() {
// ================================================================================================
bool VirtualGPU::HwQueueTracker::Create() {
uint kSignalListSize = ROC_SIGNAL_POOL_SIZE;
if (activity_prof::IsEnabled(OP_ID_DISPATCH) || gpu_.profiling_) {
kSignalListSize = !flagIsDefault(ROC_SIGNAL_POOL_SIZE) ? ROC_SIGNAL_POOL_SIZE : 4 * Ki;
}
signal_list_.resize(kSignalListSize);
hsa_agent_t agent = gpu_.gpu_device();