diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2015-07-15 08:54:34 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-07-15 15:06:00 +0800 |
commit | fe3d8976bde627dd158980ca164d0d61e15dfc18 (patch) | |
tree | f6a75d3d7ce6b8134bc60494fa906f5d2634dcfb /src/cl_api.c | |
parent | 3c8db95831952215cda95b2a5c147523cf9f1483 (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.c | 1 |
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 |