• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright (c) 2022 The Khronos Group Inc.
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 #ifndef CL_KHR_COMMAND_BUFFER_PROCS_H
17 #define CL_KHR_COMMAND_BUFFER_PROCS_H
18 
19 #include <CL/cl.h>
20 
21 // Basic command-buffer tests
22 extern int test_single_ndrange(cl_device_id device, cl_context context,
23                                cl_command_queue queue, int num_elements);
24 extern int test_interleaved_enqueue(cl_device_id device, cl_context context,
25                                     cl_command_queue queue, int num_elements);
26 extern int test_mixed_commands(cl_device_id device, cl_context context,
27                                cl_command_queue queue, int num_elements);
28 extern int test_explicit_flush(cl_device_id device, cl_context context,
29                                cl_command_queue queue, int num_elements);
30 extern int test_out_of_order(cl_device_id device, cl_context context,
31                              cl_command_queue queue, int num_elements);
32 extern int test_basic_printf(cl_device_id device, cl_context context,
33                              cl_command_queue queue, int num_elements);
34 extern int test_simultaneous_printf(cl_device_id device, cl_context context,
35                                     cl_command_queue queue, int num_elements);
36 extern int test_info_queues(cl_device_id device, cl_context context,
37                             cl_command_queue queue, int num_elements);
38 extern int test_info_ref_count(cl_device_id device, cl_context context,
39                                cl_command_queue queue, int num_elements);
40 extern int test_info_state(cl_device_id device, cl_context context,
41                            cl_command_queue queue, int num_elements);
42 extern int test_info_prop_array(cl_device_id device, cl_context context,
43                                 cl_command_queue queue, int num_elements);
44 extern int test_info_context(cl_device_id device, cl_context context,
45                              cl_command_queue queue, int num_elements);
46 extern int test_basic_set_kernel_arg(cl_device_id device, cl_context context,
47                                      cl_command_queue queue, int num_elements);
48 extern int test_pending_set_kernel_arg(cl_device_id device, cl_context context,
49                                        cl_command_queue queue,
50                                        int num_elements);
51 extern int test_regular_wait_for_command_buffer(cl_device_id device,
52                                                 cl_context context,
53                                                 cl_command_queue queue,
54                                                 int num_elements);
55 extern int test_command_buffer_wait_for_command_buffer(cl_device_id device,
56                                                        cl_context context,
57                                                        cl_command_queue queue,
58                                                        int num_elements);
59 extern int test_command_buffer_wait_for_sec_command_buffer(
60     cl_device_id device, cl_context context, cl_command_queue queue,
61     int num_elements);
62 extern int test_return_event_callback(cl_device_id device, cl_context context,
63                                       cl_command_queue queue, int num_elements);
64 extern int test_clwaitforevents_single(cl_device_id device, cl_context context,
65                                        cl_command_queue queue,
66                                        int num_elements);
67 extern int test_clwaitforevents(cl_device_id device, cl_context context,
68                                 cl_command_queue queue, int num_elements);
69 extern int test_command_buffer_wait_for_regular(cl_device_id device,
70                                                 cl_context context,
71                                                 cl_command_queue queue,
72                                                 int num_elements);
73 extern int test_wait_for_sec_queue_event(cl_device_id device,
74                                          cl_context context,
75                                          cl_command_queue queue,
76                                          int num_elements);
77 extern int test_user_event_wait(cl_device_id device, cl_context context,
78                                 cl_command_queue queue, int num_elements);
79 extern int test_user_events_wait(cl_device_id device, cl_context context,
80                                  cl_command_queue queue, int num_elements);
81 extern int test_user_event_callback(cl_device_id device, cl_context context,
82                                     cl_command_queue queue, int num_elements);
83 extern int test_simultaneous_out_of_order(cl_device_id device,
84                                           cl_context context,
85                                           cl_command_queue queue,
86                                           int num_elements);
87 extern int test_basic_profiling(cl_device_id device, cl_context context,
88                                 cl_command_queue queue, int num_elements);
89 extern int test_simultaneous_profiling(cl_device_id device, cl_context context,
90                                        cl_command_queue queue,
91                                        int num_elements);
92 extern int test_queue_substitution(cl_device_id device, cl_context context,
93                                    cl_command_queue queue, int num_elements);
94 extern int test_properties_queue_substitution(cl_device_id device,
95                                               cl_context context,
96                                               cl_command_queue queue,
97                                               int num_elements);
98 extern int test_simultaneous_queue_substitution(cl_device_id device,
99                                                 cl_context context,
100                                                 cl_command_queue queue,
101                                                 int num_elements);
102 extern int test_fill_image(cl_device_id device, cl_context context,
103                            cl_command_queue queue, int num_elements);
104 extern int test_fill_buffer(cl_device_id device, cl_context context,
105                             cl_command_queue queue, int num_elements);
106 extern int test_fill_svm_buffer(cl_device_id device, cl_context context,
107                                 cl_command_queue queue, int num_elements);
108 extern int test_copy_image(cl_device_id device, cl_context context,
109                            cl_command_queue queue, int num_elements);
110 extern int test_copy_buffer(cl_device_id device, cl_context context,
111                             cl_command_queue queue, int num_elements);
112 extern int test_copy_svm_buffer(cl_device_id device, cl_context context,
113                                 cl_command_queue queue, int num_elements);
114 extern int test_copy_buffer_to_image(cl_device_id device, cl_context context,
115                                      cl_command_queue queue, int num_elements);
116 extern int test_copy_image_to_buffer(cl_device_id device, cl_context context,
117                                      cl_command_queue queue, int num_elements);
118 extern int test_copy_buffer_rect(cl_device_id device, cl_context context,
119                                  cl_command_queue queue, int num_elements);
120 extern int test_barrier_wait_list(cl_device_id device, cl_context context,
121                                   cl_command_queue queue, int num_elements);
122 extern int test_event_info_command_type(cl_device_id device, cl_context context,
123                                         cl_command_queue queue,
124                                         int num_elements);
125 extern int test_event_info_command_queue(cl_device_id device,
126                                          cl_context context,
127                                          cl_command_queue queue,
128                                          int num_elements);
129 extern int test_event_info_context(cl_device_id device, cl_context context,
130                                    cl_command_queue queue, int num_elements);
131 extern int test_event_info_execution_status(cl_device_id device,
132                                             cl_context context,
133                                             cl_command_queue queue,
134                                             int num_elements);
135 extern int test_event_info_reference_count(cl_device_id device,
136                                            cl_context context,
137                                            cl_command_queue queue,
138                                            int num_elements);
139 extern int test_finalize_invalid(cl_device_id device, cl_context context,
140                                  cl_command_queue queue, int num_elements);
141 extern int test_finalize_empty(cl_device_id device, cl_context context,
142                                cl_command_queue queue, int num_elements);
143 
144 #endif // CL_KHR_COMMAND_BUFFER_PROCS_H
145