| 10037 | } |
| 10038 | |
| 10039 | inline cl_int flush(void) |
| 10040 | { |
| 10041 | cl_int error; |
| 10042 | CommandQueue queue = CommandQueue::getDefault(&error); |
| 10043 | |
| 10044 | if (error != CL_SUCCESS) { |
| 10045 | return error; |
| 10046 | } |
| 10047 | |
| 10048 | return queue.flush(); |
| 10049 | } |
| 10050 | |
| 10051 | inline cl_int finish(void) |
| 10052 | { |