Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 804 void CommandQueue::create(ContextImpl* context)
- 805 {
- 806 release();
- 807 cl_int status = 0;
- 808 // TODO add CL_QUEUE_PROFILING_ENABLE
- 809 cl_command_queue clCmdQueue = clCreateCommandQueue(context->clContext, context->clDeviceID, 0, &status);
- 810 openCLVerifyCall(status);
- 811 context_ = context;
- 812 clQueue_ = clCmdQueue;
- 813 }
- cl_command_queue Queue = clCreateCommandQueue(ocl::Context::getOpenCLContextPtr(), ocl::Context::getOpenCLDeviceIDPtr(), CL_QUEUE_PROFILING_ENABLE); //Create a new queue with same parameters
- ocl::CommandQueue::Release(); //To release the old queue
- ocl::CommandQueue::clQueue_ = Queue ; //To overwrite it internally with the new one
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement