24 #ifndef __ARM_COMPUTE_RUNTIME_CL_CL_MEMORY_REGION_H__ 25 #define __ARM_COMPUTE_RUNTIME_CL_CL_MEMORY_REGION_H__ 58 const cl::Buffer &
cl_data()
const;
63 virtual void *
ptr() = 0;
73 virtual void *
map(cl::CommandQueue &q,
bool blocking) = 0;
81 virtual void unmap(cl::CommandQueue &q) = 0;
85 void *
buffer()
const override;
107 void *
ptr()
override;
108 void *
map(cl::CommandQueue &q,
bool blocking)
override;
109 void unmap(cl::CommandQueue &q)
override;
136 void *
ptr()
override;
156 void *
map(cl::CommandQueue &q,
bool blocking)
override;
157 void unmap(cl::CommandQueue &q)
override;
174 void *
map(cl::CommandQueue &q,
bool blocking)
override;
175 void unmap(cl::CommandQueue &q)
override;
const cl::Buffer & cl_data() const
Returns the underlying CL buffer.
OpenCL SVM memory region interface.
ICLMemoryRegion(cl::Context ctx, size_t size)
Constructor.
OpenCL memory region interface.
This file contains all available output stages for GEMMLowp on OpenCL.
void * buffer() override
Returns the pointer to the allocated data.
virtual void * ptr()=0
Host/SVM pointer accessor.
OpenCL coarse-grain SVM memory region implementation.
ICLMemoryRegion & operator=(const ICLMemoryRegion &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
virtual ~ICLMemoryRegion()=default
Default Destructor.
OpenCL buffer memory region implementation.
virtual void * map(cl::CommandQueue &q, bool blocking)=0
Enqueue a map operation of the allocated buffer on the given queue.
size_t size()
Memory region size accessor.
OpenCL fine-grain SVM memory region implementation.
void ** handle() override
Handle of internal memory.
virtual void unmap(cl::CommandQueue &q)=0
Enqueue an unmap operation of the allocated buffer on the given queue.