mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
fix: return error when flush in waitForEvents return error
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4b3a6e9cfe
commit
33a346838e
@@ -715,7 +715,10 @@ cl_int Event::waitForEvents(cl_uint numEvents,
|
||||
Event *event = castToObjectOrAbort<Event>(*it);
|
||||
if (event->cmdQueue) {
|
||||
if (event->taskLevel != CompletionStamp::notReady) {
|
||||
event->cmdQueue->flush();
|
||||
auto ret = event->cmdQueue->flush();
|
||||
if (ret != CL_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user