mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e33e71dee5
commit
08506dc81e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user