24.04
|
Go to the documentation of this file.
25 #ifndef ACL_SRC_CORE_CL_CLMUTABLECOMMANDBUFFER_H
26 #define ACL_SRC_CORE_CL_CLMUTABLECOMMANDBUFFER_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;
77 cl_command_buffer_khr _cb{};
78 cl_mutable_base_config_khr _mut_cfg{};
79 std::vector<cl_mutable_dispatch_config_khr> _mut_dispatch_cfgs{};
80 std::vector<cl_mutable_dispatch_arg_khr> _mut_arg_cfgs{};
85 #endif // ACL_SRC_CORE_CL_CLMUTABLECOMMANDBUFFER_H
Command buffer implementaton based on CL mutable dispatch command buffer extension.
void update() override
Update the command buffer with new kernel argument values.
bool is_finalized() const override
Check if the command buffer has been finalized.
void finalize() override
Finalize the command buffer.
CLMutableCommandBuffer & operator=(const CLMutableCommandBuffer &)=delete
Disallow copy assignment.
void enqueue() override
Enqueue the command buffer.
__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...
Copyright (c) 2017-2024 Arm Limited.
CLMutableCommandBuffer(cl_command_queue queue)
Create a new mutable dispatch command buffer targeting the specified command queue.
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.
virtual ~CLMutableCommandBuffer()
Destructor.