Browse Source

Kernels are safely flushed in a way that allows out of order execution to work.

Con Kolivas 14 years ago
parent
commit
7b13812efb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ocl.c

+ 2 - 1
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)");