From fca4833cd73031a018a774a0266fb3e00082dc62 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Wed, 10 Apr 2013 17:38:46 +0800 Subject: [PATCH] Enable the clFlush. We don't need to do anything now, as current it alwasy flushs all the commands each time. We may need to revisit here after we optmize the clEnqueueNDRangeKernel's behaviour and don't flush pipeline every time. Signed-off-by: Zhigang Gong Tested-by: Lu, Guanqun --- src/cl_api.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cl_api.c b/src/cl_api.c index 61a00d1..88e1096 100644 --- a/src/cl_api.c +++ b/src/cl_api.c @@ -754,7 +754,10 @@ clGetEventProfilingInfo(cl_event event, cl_int clFlush(cl_command_queue command_queue) { - NOT_IMPLEMENTED; + /* have nothing to do now, as currently + * clEnqueueNDRangeKernel will flush at + * the end of each calling. we may need + * to optimize it latter.*/ return 0; } -- 2.7.4