I am new to opencv and opencl. In opencl they give a wrappers for opencl utility function calling. I do not need to do much. ocl::Context::getContext() will get me the context and I can pass it to all opencl related execution. I do not need command quee here. But I want to know the performance of the kernels using opencl's profiling events. For that I need to create a custom command queue. How can I create a command queue with the same context that I used for executing kernel. Please I created this context using opencv's function ocl::Context::getContext().
I do not want to create command queue from scratch (by getting platform id, device id, context one by one). That would mean to change a lot of places. I want to reuse opencv's context and reuse it to create command queue with event capability.