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

Method map

src/runtime/CL/CLMemoryRegion.cpp:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void *CLBufferMemoryRegion::map(cl::CommandQueue &q, bool blocking)
93{
94 ARM_COMPUTE_ERROR_ON(_mem.get() == nullptr);
95 _mapping = q.enqueueMapBuffer(_mem, blocking ? CL_TRUE : CL_FALSE, CL_MAP_READ | CL_MAP_WRITE, 0, _size);
96 return _mapping;
97}
98
99void CLBufferMemoryRegion::unmap(cl::CommandQueue &q)
100{

Callers

nothing calls this directly

Calls 4

clEnqueueSVMMapFunction · 0.85
clFinishFunction · 0.85
enqueueMapBufferMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected