| 10049 | } |
| 10050 | |
| 10051 | inline cl_int finish(void) |
| 10052 | { |
| 10053 | cl_int error; |
| 10054 | CommandQueue queue = CommandQueue::getDefault(&error); |
| 10055 | |
| 10056 | if (error != CL_SUCCESS) { |
| 10057 | return error; |
| 10058 | } |
| 10059 | |
| 10060 | |
| 10061 | return queue.finish(); |
| 10062 | } |
| 10063 | |
| 10064 | class EnqueueArgs |
| 10065 | { |