23.11
|
Go to the documentation of this file.
40 return static_cast<void *
>(buf);
52 return std::make_unique<CLBufferMemoryRegion>(CL_MEM_ALLOC_HOST_PTR | CL_MEM_READ_WRITE, size);
void free(void *ptr) override
Interface to be implemented by the child class to free the allocated tensor.
cl_mem clCreateBuffer(cl_context context, cl_mem_flags flags, size_t size, void *host_ptr, cl_int *errcode_ret)
cl_int clReleaseMemObject(cl_mem memobj)
std::unique_ptr< IMemoryRegion > make_region(size_t size, size_t alignment) override
Create self-managed memory region.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Interface to enqueue OpenCL kernels and get/set the OpenCL CommandQueue and ICLTuner.
Wrapper to configure the Khronos OpenCL C++ header.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
static CLScheduler & get()
Access the scheduler singleton.
Copyright (c) 2017-2023 Arm Limited.
void * allocate(size_t size, size_t alignment) override
Interface to be implemented by the child class to allocate bytes.