summaryrefslogtreecommitdiff
path: root/src/cl_api.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2015-07-15 08:54:34 +0800
committerYang Rong <rong.r.yang@intel.com>2015-07-15 15:06:00 +0800
commitfe3d8976bde627dd158980ca164d0d61e15dfc18 (patch)
treef6a75d3d7ce6b8134bc60494fa906f5d2634dcfb /src/cl_api.c
parent3c8db95831952215cda95b2a5c147523cf9f1483 (diff)
Need to check eventWaitList in clEnqueueNDRangeKernel.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_api.c')
-rw-r--r--src/cl_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_api.c b/src/cl_api.c
index 3d79dcd5..69eb0bcf 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -2981,6 +2981,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