AUB with kernel names in case of kernel split

Related-To: NEO-2747

Change-Id: I49d3e4716db4634da6744fe91ecfb0763f67722a
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2019-05-06 16:22:51 +02:00
committed by sys_ocldev
parent ce78f0336f
commit 10d87404b6
3 changed files with 34 additions and 10 deletions

View File

@@ -183,17 +183,17 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
enqueueHandlerHook(commandType, multiDispatchInfo);
if (getCommandStreamReceiver().getType() > CommandStreamReceiverType::CSR_HW) {
if (!multiDispatchInfo.empty()) {
auto kernelName = multiDispatchInfo.peekMainKernel()->getKernelInfo().name;
getCommandStreamReceiver().addAubComment(kernelName.c_str());
}
}
if (DebugManager.flags.AUBDumpSubCaptureMode.get()) {
getCommandStreamReceiver().activateAubSubCapture(multiDispatchInfo);
}
if (getCommandStreamReceiver().getType() > CommandStreamReceiverType::CSR_HW) {
for (auto &dispatchInfo : multiDispatchInfo) {
auto kernelName = dispatchInfo.getKernel()->getKernelInfo().name;
getCommandStreamReceiver().addAubComment(kernelName.c_str());
}
}
if (DebugManager.flags.MakeEachEnqueueBlocking.get()) {
blocking = true;
}