[Beignet] [PATCH 2/2] Need to check eventWaitList in clEnqueueNDRangeKernel.

Zhigang Gong zhigang.gong at intel.com
Tue Jul 14 17:54:34 PDT 2015


From: Zhigang Gong <zhigang.gong at linux.intel.com>

Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
 src/cl_api.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cl_api.c b/src/cl_api.c
index 9fdf526..7c91062 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -2983,6 +2983,7 @@ clEnqueueNDRangeKernel(cl_command_queue  command_queue,
   data->type = EnqueueNDRangeKernel;
   data->queue = command_queue;
 
+  TRY(cl_event_check_waitlist, num_events_in_wait_list, event_wait_list, event, command_queue->ctx);
   if(handle_events(command_queue, num_events_in_wait_list, event_wait_list,
                    event, data, CL_COMMAND_NDRANGE_KERNEL) == CL_ENQUEUE_EXECUTE_IMM) {
     if (event && (*event)->type != CL_COMMAND_USER
-- 
1.9.1



More information about the Beignet mailing list