23.08
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_ICLARRAY_H
25 #define ARM_COMPUTE_ICLARRAY_H
62 virtual const cl::Buffer &
cl_buffer()
const = 0;
70 void map(cl::CommandQueue &q,
bool blocking =
true)
72 _mapping = do_map(q, blocking);
83 do_unmap(q, _mapping);
90 return reinterpret_cast<T *
>(_mapping);
101 virtual uint8_t *do_map(cl::CommandQueue &q,
bool blocking) = 0;
110 virtual void do_unmap(cl::CommandQueue &q, uint8_t *mapping) = 0;
ICLArray(size_t max_num_values)
Constructor.
void map(cl::CommandQueue &q, bool blocking=true)
Enqueue a map operation of the allocated buffer on the given queue.
size_t max_num_values() const
Maximum number of values which can be stored in this array.
Interface for OpenCL Array.
virtual ~ICLArray()=default
Default virtual destructor.
Wrapper to configure the Khronos OpenCL C++ header.
ICLArray & operator=(const ICLArray &)=delete
Prevent instances of this class from being copied.
void unmap(cl::CommandQueue &q)
Enqueue an unmap operation of the allocated and mapped buffer on the given queue.
Copyright (c) 2017-2023 Arm Limited.
T * buffer() const override
Pointer to the first element of the array.
virtual const cl::Buffer & cl_buffer() const =0
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing ...