OpenCL Queue Families extension 14/n

Check capabilities in clEnqueueWaitForEvents

Related-To: NEO-5120
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2021-01-28 16:41:08 +00:00
committed by Compute-Runtime-Automation
parent e33e71dee5
commit 08506dc81e
2 changed files with 27 additions and 1 deletions

View File

@@ -3568,6 +3568,12 @@ cl_int CL_API_CALL clEnqueueWaitForEvents(cl_command_queue commandQueue,
return retVal;
}
if (!pCommandQueue->validateCapabilitiesForEventWaitList(numEvents, eventList)) {
retVal = CL_INVALID_OPERATION;
TRACING_EXIT(clEnqueueWaitForEvents, &retVal);
return retVal;
}
retVal = Event::waitForEvents(numEvents, eventList);
TRACING_EXIT(clEnqueueWaitForEvents, &retVal);