[Beignet] [PATCH] Fix an event status bug.
Yang Rong
rong.r.yang at intel.com
Thu Jun 19 06:50:47 PDT 2014
If event status is an Error code, the status of events wait on this event also should set to Error code.
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 76d6760..9e7c09f 100644
--- a/src/cl_event.c
+++ b/src/cl_event.c
@@ -453,7 +453,7 @@ void cl_event_set_status(cl_event event, cl_int status)
/* Call the pending operation */
evt = cb->event;
- cl_event_set_status(cb->event, CL_COMPLETE);
+ cl_event_set_status(cb->event, status);
if(evt->emplict == CL_FALSE) {
cl_event_delete(evt);
}
--
1.8.3.2
More information about the Beignet
mailing list