clDNN
custom_gpu_primitive.h
1 /*
2 // Copyright (c) 2016 Intel Corporation
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 */
16 
18 #ifndef CUSTOM_GPU_PRIMITIVE_H
19 #define CUSTOM_GPU_PRIMITIVE_H
20 
21 #include "cldnn.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
36 CLDNN_BEGIN_PRIMITIVE_DESC(custom_gpu_primitive)
40 cldnn_kernel_entry_point kernel_entry_point;
42 cldnn_kernel_arguments kernel_arguments;
44 int kernel_arguments_num;
48 cldnn_layout output_layout;
52 int gws_num;
56 int lws_num;
57 
58 CLDNN_END_PRIMITIVE_DESC(custom_gpu_primitive)
59 
60 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(custom_gpu_primitive);
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
69 #endif /* CUSTOM_GPU_PRIMITIVE_H */
70 
#define CLDNN_BEGIN_PRIMITIVE_DESC(PType)
Begin primitive description definition.
Definition: cldnn.h:398
Custom primitive kernel argument type.
Definition: cldnn.h:363
const size_t * cldnn_work_group_sizes
Custom primitive kernel workgroup sizes.
Definition: cldnn.h:350
const char * cldnn_kernel_build_options
Custom primitive kernel build options.
Definition: cldnn.h:348
Memory layout description.
Definition: cldnn.h:295
Represents reference to an array of primitive ids.
Definition: cldnn.h:335
const char * cldnn_kernel_entry_point
Custom primitive kernel entry point.
Definition: cldnn.h:346
#define CLDNN_END_PRIMITIVE_DESC(PType)
Close primitive descriptor definition.
Definition: cldnn.h:409