From 4378898d00f6153b9b0ffe45621a0e74500262ee Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 24 May 2018 15:36:09 -0400
Subject: [PATCH] P4 to Git Change 1559246 by gandryey@gera-w8 on 2018/05/24
15:30:37
SWDEV-79445 - OCL generic changes and code clean-up
- Notify command queues about waiting events before command submission. That allows to issue a marker earlier to avoid extra latency when other jobs can be submitted before a notification in the worker thread.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_common.hpp#21 edit
[ROCm/clr commit: 34f6e5c3cd62106b417670b5f96c180876d73dac]
---
projects/clr/opencl/api/opencl/amdocl/cl_common.hpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/projects/clr/opencl/api/opencl/amdocl/cl_common.hpp b/projects/clr/opencl/api/opencl/amdocl/cl_common.hpp
index c2ec8a1f86..aefe80c1d7 100644
--- a/projects/clr/opencl/api/opencl/amdocl/cl_common.hpp
+++ b/projects/clr/opencl/api/opencl/amdocl/cl_common.hpp
@@ -199,6 +199,9 @@ clSetEventWaitList(
if (&context != &amdEvent->context()) {
return CL_INVALID_CONTEXT;
}
+ if (!amdEvent->notifyCmdQueue()) {
+ return CL_INVALID_EVENT_WAIT_LIST;
+ }
eventWaitList.push_back(amdEvent);
}
return CL_SUCCESS;