From 7b13812efb86c1340ee5ff4ce9e63b38ee924e31 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 21 Jul 2011 09:58:28 +1000 Subject: [PATCH] Kernels are safely flushed in a way that allows out of order execution to work. --- ocl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ocl.c b/ocl.c index 427ef134..1d8dd0ed 100644 --- a/ocl.c +++ b/ocl.c @@ -617,7 +617,8 @@ built: ///////////////////////////////////////////////////////////////// // Create an OpenCL command queue ///////////////////////////////////////////////////////////////// - clState->commandQueue = clCreateCommandQueue( clState->context, devices[gpu], 0, &status); + clState->commandQueue = clCreateCommandQueue(clState->context, devices[gpu], + CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, &status); if (status != CL_SUCCESS) { applog(LOG_ERR, "Creating Command Queue. (clCreateCommandQueue)");