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

Method do_map

arm_compute/runtime/CL/CLArray.h:95–100  ·  view source on GitHub ↗

Inherited methods overridden:

Source from the content-addressed store, hash-verified

93protected:
94 // Inherited methods overridden:
95 uint8_t *do_map(cl::CommandQueue &q, bool blocking) override
96 {
97 ARM_COMPUTE_ERROR_ON(nullptr == _buffer.get());
98 return static_cast<uint8_t *>(q.enqueueMapBuffer(
99 _buffer, blocking ? CL_TRUE : CL_FALSE, CL_MAP_READ | CL_MAP_WRITE, 0, this->max_num_values() * sizeof(T)));
100 }
101 void do_unmap(cl::CommandQueue &q, uint8_t *mapping) override
102 {
103 ARM_COMPUTE_ERROR_ON(nullptr == _buffer.get());

Callers

nothing calls this directly

Calls 3

enqueueMapBufferMethod · 0.80
max_num_valuesMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected