mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 08:37:12 +08:00
OCL: optimize creating printf buffer
Dont create printf buffer when kernel doesnt require it Related-To: HSD-18023825570 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
48824acab2
commit
23eff82d0a
@@ -408,7 +408,7 @@ void CommandQueueHw<GfxFamily>::processDispatchForKernels(const MultiDispatchInf
|
||||
TagNodeBase *hwPerfCounter = nullptr;
|
||||
getClFileLogger().dumpKernelArgs(&multiDispatchInfo);
|
||||
|
||||
printfHandler.reset(PrintfHandler::create(multiDispatchInfo, *device));
|
||||
printfHandler.reset(PrintfHandler::create(multiDispatchInfo, device->getDevice()));
|
||||
if (printfHandler) {
|
||||
printfHandler->prepareDispatch(multiDispatchInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user