mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Create printf handler if kernel has implicit args in OCL
Related-To: NEO-5081 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5be770ab49
commit
64b2fd5b19
@@ -37,9 +37,10 @@ PrintfHandler *PrintfHandler::create(const MultiDispatchInfo &multiDispatchInfo,
|
||||
return new PrintfHandler(device);
|
||||
}
|
||||
auto mainKernel = multiDispatchInfo.peekMainKernel();
|
||||
if ((mainKernel != nullptr) &&
|
||||
mainKernel->checkIfIsParentKernelAndBlocksUsesPrintf()) {
|
||||
return new PrintfHandler(device);
|
||||
if (mainKernel != nullptr) {
|
||||
if (mainKernel->checkIfIsParentKernelAndBlocksUsesPrintf() || mainKernel->getImplicitArgs()) {
|
||||
return new PrintfHandler(device);
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user