| 136 | } |
| 137 | |
| 138 | void schedule_kernel_on_ctx(CLRuntimeContext *ctx, ICLKernel *kernel, bool flush) |
| 139 | { |
| 140 | ARM_COMPUTE_ERROR_ON_NULLPTR(kernel); |
| 141 | if (ctx) |
| 142 | { |
| 143 | ARM_COMPUTE_ERROR_ON(ctx->gpu_scheduler() == nullptr); |
| 144 | ctx->gpu_scheduler()->enqueue(*kernel, flush); |
| 145 | } |
| 146 | else |
| 147 | { |
| 148 | CLScheduler::get().enqueue(*kernel, flush); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | } // namespace arm_compute |
no test coverage detected