| 159 | } |
| 160 | |
| 161 | Status CLCommandQueue::WaitForCompletion() { |
| 162 | auto error_code = clFinish(queue_); |
| 163 | if (error_code != CL_SUCCESS) { |
| 164 | return UnknownError( |
| 165 | absl::StrCat("Failed to clFinish - ", CLErrorCodeToString(error_code))); |
| 166 | } |
| 167 | return OkStatus(); |
| 168 | } |
| 169 | |
| 170 | ProfilingCommandQueue::ProfilingCommandQueue(cl_command_queue queue) |
| 171 | : CLCommandQueue(queue) { |