24.04
|
Go to the documentation of this file.
25 #ifndef ACL_SRC_CORE_CL_CLCOMPATCOMMANDBUFFER_H
26 #define ACL_SRC_CORE_CL_CLCOMPATCOMMANDBUFFER_H
62 const cl::NDRange &global,
63 const cl::NDRange &local)
override;
74 void add_mutable_argument_generic(cl_uint arg_idx,
const void *value,
size_t size)
override;
84 std::vector<cl_mutable_dispatch_arg_khr> mutable_args;
88 cl_command_queue _queue{};
89 std::vector<KernelCommand> _kernel_cmds{};
94 #endif // ACL_SRC_CORE_CL_CLCOMPATCOMMANDBUFFER_H
void update() override
Update the command buffer with new kernel argument values.
virtual ~CLCompatCommandBuffer()
Destructor.
void add_kernel(cl_kernel kernel, const cl::NDRange &offset, const cl::NDRange &global, const cl::NDRange &local) override
Add a kernel enqueue command to the command queue.
void finalize() override
Finalize the command buffer.
CLCompatCommandBuffer(cl_command_queue queue)
Create a new command buffer targeting the specified command queue.
bool is_finalized() const override
Check if the command buffer has been finalized.
__global uchar * offset(const Image *img, int x, int y)
Get the pointer position of a Image.
Command buffer contains a list of commands that is constructed once and later enqueued multiple times...
CLCompatCommandBuffer & operator=(const CLCompatCommandBuffer &)=delete
Disallow copy assignment.
Command buffer implementation for platform without mutable dispatch command buffer extension.
Copyright (c) 2017-2024 Arm Limited.
void enqueue() override
Enqueue the command buffer.