summaryrefslogtreecommitdiff
path: root/src/cl_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cl_api.c')
-rw-r--r--src/cl_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cl_api.c b/src/cl_api.c
index 8a2e999b..133b524c 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -2972,6 +2972,8 @@ clEnqueueNDRangeKernel(cl_command_queue command_queue,
data->type = EnqueueNDRangeKernel;
data->queue = command_queue;
+ printf("run kernel %s \n", cl_kernel_get_name(kernel));
+ fflush(stdout);
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
@@ -2981,6 +2983,10 @@ clEnqueueNDRangeKernel(cl_command_queue command_queue,
err = cl_command_queue_flush(command_queue);
}
+
+ clFinish(command_queue);
+ printf("end kernel %s \n", cl_kernel_get_name(kernel));
+ fflush(stdout);
if(b_output_kernel_perf)
{