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

Submitted by Zhigang Gong on July 15, 2015, 12:54 a.m.

Details

Message ID 1436921674-31248-2-git-send-email-zhigang.gong@intel.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Zhigang Gong July 15, 2015, 12:54 a.m.
From: Zhigang Gong <zhigang.gong@linux.intel.com>

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

Patch hide | download patch | download mbox

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