Commit 2e37e3374e08dc710b351779f856652070e7d00d

Con Kolivas 2011-07-24T10:58:03

Out of order command queue may fail on osx. Try without if it fails.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ocl.c b/ocl.c
index 30f575c..3d07f34 100644
--- a/ocl.c
+++ b/ocl.c
@@ -637,6 +637,8 @@ built:
 	/////////////////////////////////////////////////////////////////
 	clState->commandQueue = clCreateCommandQueue(clState->context, devices[gpu],
 						     CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, &status);
+	if (status != CL_SUCCESS) /* Try again without OOE enable */
+		clState->commandQueue = clCreateCommandQueue(clState->context, devices[gpu], 0 , &status);
 	if (status != CL_SUCCESS)
 	{
 		applog(LOG_ERR, "Creating Command Queue. (clCreateCommandQueue)");