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