[Beignet] [PATCH] Runtime: return CL_INVALID_EVENT_WAIT_LIST if not event in the wait list.
Yang Rong
rong.r.yang at intel.com
Wed Dec 28 10:47:01 UTC 2016
From: Meng Mengmeng <mengmeng.meng at intel.com>
Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
src/cl_event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cl_event.c b/src/cl_event.c
index 8173578..644a21f 100644
--- a/src/cl_event.c
+++ b/src/cl_event.c
@@ -546,7 +546,7 @@ cl_event_check_waitlist(cl_uint num_events_in_wait_list, const cl_event *event_w
/* check the event and context */
for (i = 0; i < num_events_in_wait_list; i++) {
if (!CL_OBJECT_IS_EVENT(event_wait_list[i])) {
- err = CL_INVALID_EVENT;
+ err = CL_INVALID_EVENT_WAIT_LIST;
break;
}
--
2.1.4
More information about the Beignet
mailing list