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

Method map

src/runtime/CL/CLTensorAllocator.cpp:229–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229uint8_t *CLTensorAllocator::map(cl::CommandQueue &q, bool blocking)
230{
231 ARM_COMPUTE_ERROR_ON(_mapping != nullptr);
232 ARM_COMPUTE_ERROR_ON(_memory.region() == nullptr);
233 ARM_COMPUTE_ERROR_ON(_memory.region()->buffer() != nullptr);
234
235 _mapping = reinterpret_cast<uint8_t *>(_memory.cl_region()->map(q, blocking));
236 return _mapping;
237}
238
239void CLTensorAllocator::unmap(cl::CommandQueue &q, uint8_t *mapping)
240{

Callers

nothing calls this directly

Calls 3

cl_regionMethod · 0.80
regionMethod · 0.45
bufferMethod · 0.45

Tested by

no test coverage detected