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

Method unlock

src/runtime/CL/CLTensorAllocator.cpp:215–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void CLTensorAllocator::unlock()
216{
217 ARM_COMPUTE_ERROR_ON(_memory.region() == nullptr);
218 if (_ctx)
219 {
220 unmap(_ctx->gpu_scheduler()->queue(), reinterpret_cast<uint8_t *>(_memory.region()->buffer()));
221 }
222 else
223 {
224 //Legacy singleton api
225 unmap(CLScheduler::get().queue(), reinterpret_cast<uint8_t *>(_memory.region()->buffer()));
226 }
227}
228
229uint8_t *CLTensorAllocator::map(cl::CommandQueue &q, bool blocking)
230{

Callers 1

worker_threadMethod · 0.45

Calls 4

unmapFunction · 0.85
gpu_schedulerMethod · 0.80
regionMethod · 0.45
bufferMethod · 0.45

Tested by

no test coverage detected