24.02.1
|
Go to the documentation of this file.
24 #ifndef SRC_DYNAMIC_FUSION_RUNTIME_GPU_CL_CLKERNELRUNTIME
25 #define SRC_DYNAMIC_FUSION_RUNTIME_GPU_CL_CLKERNELRUNTIME
36 namespace experimental
38 namespace dynamic_fusion
41 class GpuKernelSourceCode;
62 #ifndef ACL_INTERNAL_TEST_CKW_IN_DF
71 inline void add_tensor_argument(
unsigned int &idx,
75 std::vector<cl::Image2D> &cl_images);
76 #else // ACL_INTERNAL_TEST_CKW_IN_DF
84 inline void add_kernel_argument(
unsigned int &idx,
85 const GpuKernelArgumentBinding &arg,
87 std::vector<cl::Image2D> &cl_images);
88 #endif // ACL_INTERNAL_TEST_CKW_IN_DF
Interface for OpenCL tensor.
Container of kernel code to be compiled and run in a GpuUnitWorkload.
Contain information required to set up a kernel argument at run time.
virtual void run_op(ITensorPack &tensors, const Window &window, cl::CommandQueue &queue) override
Run the kernel.
CLTensor * tensor
Pointer to the auxiliary tensor.
Common interface for all the OpenCL kernels.
void configure(const opencl::ClCompileContext &compile_ctx, const GpuKernelSourceCode &code)
Configure the kernel runtime.
const Window & window() const
The maximum window the kernel can be executed on.
Describe a multidimensional execution window.
Copyright (c) 2017-2024 Arm Limited.
std::map< ITensorInfo::Id, GpuKernelArgument > GpuKernelArgumentList
The argument list of a GpuKernelSourceCode.
OpenCL runtime to run a single kernel.