Defer Event destruction if command is not completed

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2022-05-09 16:41:03 +00:00
committed by Compute-Runtime-Automation
parent f6ee9c8ba0
commit f9a5f8a86e
6 changed files with 94 additions and 6 deletions

View File

@@ -2131,6 +2131,7 @@ cl_int CL_API_CALL clReleaseEvent(cl_event event) {
DBG_LOG_INPUTS("cl_event", event, "Event", pEvent);
if (pEvent) {
pEvent->handleCompletionBeforeDestruction();
pEvent->release();
TRACING_EXIT(clReleaseEvent, &retVal);
return retVal;