Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
}
LOCAL cl_int
+cl_command_queue_flush(cl_command_queue queue)
+{
+ cl_gpgpu_flush(queue->gpgpu);
+ return CL_SUCCESS;
+}
+
+LOCAL cl_int
cl_command_queue_finish(cl_command_queue queue)
{
cl_gpgpu_sync(queue->gpgpu);
/* Fulsim will dump this buffer (mostly to check its consistency */
cl_int cl_command_queue_set_fulsim_buffer(cl_command_queue, cl_mem);
+/* Flush for the command queue */
+extern cl_int cl_command_queue_flush(cl_command_queue);
+
/* Wait for the completion of the command queue */
extern cl_int cl_command_queue_finish(cl_command_queue);