43 return &_allocator.
info();
48 return &_allocator.
info();
76 uint8_t *CLTensor::do_map(cl::CommandQueue &q,
bool blocking)
78 return _allocator.
map(q, blocking);
81 void CLTensor::do_unmap(cl::CommandQueue &q)
void map(cl::CommandQueue &q, bool blocking=true)
Enqueue a map operation of the allocated buffer on the given queue.
TensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
static CLScheduler & get()
Access the scheduler singleton.
CLQuantization quantization() const
Wrapped quantization info data accessor.
const cl::Buffer & cl_buffer() const override
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing ...
void associate_memory_group(IMemoryGroup *memory_group) override
Associates a memory managable object with the memory group that manages it.
CLTensorAllocator * allocator()
Return a pointer to the tensor's allocator.
OpenCL quantization data.
Copyright (c) 2017-2021 Arm Limited.
Basic implementation of a CL memory tensor allocator.
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer.
uint8_t * buffer() const override
Interface to be implemented by the child class to return a pointer to CPU memory. ...
void set_associated_memory_group(IMemoryGroup *associated_memory_group)
Associates the tensor with a memory group.
Interface to enqueue OpenCL kernels and get/set the OpenCL CommandQueue and ICLTuner.
uint8_t * map(cl::CommandQueue &q, bool blocking)
Enqueue a map operation of the allocated buffer on the given queue.
CLQuantization quantization() const override
Interface to be implemented by the child class to return the wrapped quantization info data...
void unmap(cl::CommandQueue &q)
Enqueue an unmap operation of the allocated and mapped buffer on the given queue. ...
void unmap(cl::CommandQueue &q, uint8_t *mapping)
Enqueue an unmap operation of the allocated buffer on the given queue.
cl::CommandQueue & queue()
Accessor for the associated CL command queue.
CLTensor(IRuntimeContext *ctx=nullptr)
Constructor.
CLRuntimeContext * context()
TensorInfo & info()
Return a reference to the tensor's metadata.
const cl::Buffer & cl_data() const
Interface to be implemented by the child class to return the pointer to the CL data.
Store the tensor's metadata.
CLScheduler * gpu_scheduler()
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.