19 #include "../C/custom_gpu_primitive.h" 20 #include "primitive.hpp" 51 const std::vector<primitive_id>&
input,
57 const std::vector<size_t>&
gws = {},
58 const std::vector<size_t>&
lws = {}
97 const std::vector<size_t>
gws;
99 const std::vector<size_t>
lws;
103 primitive_id_arr _kernels_code;
105 void update_dto(
dto&
dto)
const override cldnn_kernel_entry_point kernel_entry_point
The name of the entry point function in the kernel.
Represents program build options list.
const std::vector< size_t > gws
The global working sizes.
This primitive executes a custom kernel provided by the application.
cldnn_layout output_layout
The output layout declared by the primitive.
cldnn_work_group_sizes lws
The local working sizes.
int kernel_arguments_num
The number of arguments used by the kernel.
int lws_num
The number of local work sizes.
size_t count() const
Number of elements to be stored in this memory layout.
fixed_size_vector_ref kernels_code
Source code for the kernel.
Memory layout description.
cldnn_primitive_id_arr kernels_code
Source code for the kernel.
cldnn_work_group_sizes gws
The global working sizes.
const layout output_layout
The output layout declared by the primitive.
padding data_padding
Explicit padding of the memory.
cldnn_kernel_arguments kernel_arguments
Argument bindings for the entry point function.
custom_gpu_primitive(const dto *dto)
Constructs a copy from basic C API cldnn_custom_gpu_primitive_desc.
const std::string build_options
The kernel's build options.
const std::string kernel_entry_point
The name of the entry point function in the kernel.
This primitive executes a custom kernel provided by the application.
custom_gpu_primitive(const primitive_id &id, const std::vector< primitive_id > &input, const std::vector< std::string > &kernels_code, const std::string &kernel_entry_point, const std::vector< cldnn_arg > &kernel_arguments, const std::string &build_options, const layout &output_layout, const std::vector< size_t > &gws={}, const std::vector< size_t > &lws={})
Constructs custom_gpu_primitive primitive.
std::string primitive_id
Unique id of a primitive within a topology.
fixed_size_vector_ref input
List of ids of input primitives.
base class for all primitives implementations.
cldnn_kernel_build_options build_options
The kernel's build options.
Initialize fields common for all primitives.
const std::vector< size_t > lws
The local working sizes.
const std::vector< cldnn_arg > kernel_arguments
Argument bindings for the entry point function.
int gws_num
The number of global work sizes.