mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
Improve enqueue kernel error handling.
- Do not allow to enqueue parent kernel if there is no device queue. Change-Id: I0f06b8ed2387fc87abd652653f2c8bb8c4939a12 Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
5ab6386581
commit
e7901775a8
@@ -40,6 +40,10 @@ cl_int CommandQueueHw<GfxFamily>::enqueueKernel(
|
||||
auto &kernel = *castToObject<Kernel>(clKernel);
|
||||
const auto &kernelInfo = kernel.getKernelInfo();
|
||||
|
||||
if (kernel.isParentKernel && !this->context->getDefaultDeviceQueue()) {
|
||||
return CL_INVALID_OPERATION;
|
||||
}
|
||||
|
||||
if (!kernel.isPatched()) {
|
||||
if (event) {
|
||||
*event = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user