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

Function call_all_tasks

src/graph/detail/ExecutionHelpers.cpp:232–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void call_all_tasks(ExecutionWorkload &workload)
233{
234 ARM_COMPUTE_ERROR_ON(workload.ctx == nullptr);
235
236 // Acquire memory for the transition buffers
237 for (auto &mm_ctx : workload.ctx->memory_managers())
238 {
239 if (mm_ctx.second.cross_group != nullptr)
240 {
241 mm_ctx.second.cross_group->acquire();
242 }
243 }
244
245 // Execute tasks
246 for (auto &task : workload.tasks)
247 {
248 task();
249 }
250
251 // Release memory for the transition buffers
252 for (auto &mm_ctx : workload.ctx->memory_managers())
253 {
254 if (mm_ctx.second.cross_group != nullptr)
255 {
256 mm_ctx.second.cross_group->release();
257 }
258 }
259}
260
261bool call_all_output_node_accessors(ExecutionWorkload &workload)
262{

Callers 1

execute_graphMethod · 0.85

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected