MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / schedule_kernel_on_ctx

Function schedule_kernel_on_ctx

src/runtime/CL/CLHelpers.cpp:138–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void 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

Callers 3

runMethod · 0.70
runMethod · 0.50
runMethod · 0.50

Calls 2

gpu_schedulerMethod · 0.80
enqueueMethod · 0.45

Tested by

no test coverage detected