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
[ROCm/clr commit: 1ec0ba3537]
Este cometimento está contido em:
1 ascendente
3f4bbcfdba
cometimento
0a26b75238
2 ficheiros modificados
+7
-5
Não existem ficheiros que correspondam à sua pesquisa
@@ -42,6 +42,9 @@ HostQueue::HostQueue(Context& context, Device& device, cl_command_queue_properti
|
||||
tail_(nullptr),
|
||||
isActive_(false),
|
||||
markerTsCount_(0) {
|
||||
if (GPU_FORCE_QUEUE_PROFILING) {
|
||||
properties().set(CL_QUEUE_PROFILING_ENABLE);
|
||||
}
|
||||
if (AMD_DIRECT_DISPATCH) {
|
||||
// Initialize the queue
|
||||
thread_.Init(this);
|
||||
@@ -52,10 +55,6 @@ HostQueue::HostQueue(Context& context, Device& device, cl_command_queue_properti
|
||||
queueLock_.wait();
|
||||
}
|
||||
}
|
||||
|
||||
if (GPU_FORCE_QUEUE_PROFILING) {
|
||||
properties().set(CL_QUEUE_PROFILING_ENABLE);
|
||||
}
|
||||
}
|
||||
|
||||
bool HostQueue::terminate() {
|
||||
@@ -239,7 +238,7 @@ void HostQueue::append(Command& command) {
|
||||
|
||||
// Set last submitted command
|
||||
Command* prevLastEnqueueCommand = nullptr;
|
||||
|
||||
|
||||
// Attach only real commands and skip internal notifications for CPU queue
|
||||
if (command.waitingEvent() == nullptr) {
|
||||
command.retain();
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador