| 7180 | } |
| 7181 | |
| 7182 | inline cl_int finish(void) |
| 7183 | { |
| 7184 | cl_int error; |
| 7185 | CommandQueue queue = CommandQueue::getDefault(&error); |
| 7186 | |
| 7187 | if (error != CL_SUCCESS) { |
| 7188 | return error; |
| 7189 | } |
| 7190 | |
| 7191 | |
| 7192 | return queue.finish(); |
| 7193 | } |
| 7194 | |
| 7195 | // Kernel Functor support |
| 7196 | // New interface as of September 2011 |