Hi there a question. What is wrong with :
cqCommandQueue = clCreateCommandQueue(cxGPUContext, devices[device], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, NULL);
ciErrNum = clEnqueueWriteBuffer(cqCommandQueue, cmDevData, CL_TRUE, 0, memSize, h_data, 0, NULL, NULL);
I get an invalid queue from the code… the queue is created right? If I ommit the out of order it works just fine.