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

Method unmap

src/runtime/CL/CLTensorAllocator.cpp:239–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void CLTensorAllocator::unmap(cl::CommandQueue &q, uint8_t *mapping)
240{
241 ARM_COMPUTE_ERROR_ON(_mapping == nullptr);
242 ARM_COMPUTE_ERROR_ON(_mapping != mapping);
243 ARM_COMPUTE_ERROR_ON(_memory.region() == nullptr);
244 ARM_COMPUTE_ERROR_ON(_memory.region()->buffer() == nullptr);
245 ARM_COMPUTE_UNUSED(mapping);
246
247 _memory.cl_region()->unmap(q);
248 _mapping = nullptr;
249}
250} // namespace arm_compute

Callers

nothing calls this directly

Calls 3

cl_regionMethod · 0.80
regionMethod · 0.45
bufferMethod · 0.45

Tested by

no test coverage detected