Am porting some CUDA code to OpenCL, with implicit dependencies of CUDA special stream 0 (basically, any command put in stream 0, except for kernel launch, is executed synchronously w.r.t. host code execution); so I'm wondering: is there a "default" command queue in OpenCL with same characteristics? Or I should create another command queue for this purpose, and then just call clFinish() after each command put into this queue?
Hi, There is no defualt command queue in OpenCL. You have to create command queue at the host side with the options in-order or out of order exeuction. by default all the commands will exeute in -order. But they execute asynchronously between host and the device.