PUBLIC cl_int clFlush(cl_command_queue q) { if (!q) return CL_INVALID_COMMAND_QUEUE; q->flush(); return CL_SUCCESS; }
cl_int clReleaseCommandQueue(cl_command_queue command_queue) { if (!command_queue->isA(Coal::Object::T_CommandQueue)) return CL_INVALID_COMMAND_QUEUE; command_queue->flush(); if (command_queue->dereference()) delete command_queue; return CL_SUCCESS; }
cl_int clReleaseCommandQueue(cl_command_queue command_queue) { if (!command_queue->isA(Coal::Object::T_CommandQueue)) { #ifdef DBG_OUTPUT std::cout << "clReleaseCommandQueue failed" << std::endl; #endif return CL_INVALID_COMMAND_QUEUE; } command_queue->flush(); if (command_queue->dereference()) delete command_queue; return CL_SUCCESS; }