Browse Source

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

nfactor-troky
Con Kolivas 14 years ago
parent
commit
2e37e3374e
  1. 2
      ocl.c

2
ocl.c

@ -637,6 +637,8 @@ built:
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
clState->commandQueue = clCreateCommandQueue(clState->context, devices[gpu], clState->commandQueue = clCreateCommandQueue(clState->context, devices[gpu],
CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, &status); 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) if (status != CL_SUCCESS)
{ {
applog(LOG_ERR, "Creating Command Queue. (clCreateCommandQueue)"); applog(LOG_ERR, "Creating Command Queue. (clCreateCommandQueue)");

Loading…
Cancel
Save