Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. 804 void CommandQueue::create(ContextImpl* context)
  2. 805 {
  3. 806 release();
  4. 807 cl_int status = 0;
  5. 808 // TODO add CL_QUEUE_PROFILING_ENABLE
  6. 809 cl_command_queue clCmdQueue = clCreateCommandQueue(context->clContext, context->clDeviceID, 0, &status);
  7. 810 openCLVerifyCall(status);
  8. 811 context_ = context;
  9. 812 clQueue_ = clCmdQueue;
  10. 813 }
  11.  
  12. cl_command_queue Queue = clCreateCommandQueue(ocl::Context::getOpenCLContextPtr(), ocl::Context::getOpenCLDeviceIDPtr(), CL_QUEUE_PROFILING_ENABLE); //Create a new queue with same parameters
  13. ocl::CommandQueue::Release(); //To release the old queue
  14. ocl::CommandQueue::clQueue_ = Queue ; //To overwrite it internally with the new one
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement