• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright (c) 2023 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 #include "harness/errorHelpers.h"
17 #include "harness/kernelHelpers.h"
18 #include "harness/typeWrappers.h"
19 #include "harness/clImageHelper.h"
20 #include "harness/imageHelpers.h"
21 
22 extern int test_semaphores_simple_1(cl_device_id deviceID, cl_context context,
23                                     cl_command_queue queue, int num_elements);
24 extern int test_semaphores_simple_2(cl_device_id deviceID, cl_context context,
25                                     cl_command_queue queue, int num_elements);
26 extern int test_semaphores_reuse(cl_device_id deviceID, cl_context context,
27                                  cl_command_queue queue, int num_elements);
28 extern int test_semaphores_cross_queues_ooo(cl_device_id deviceID,
29                                             cl_context context,
30                                             cl_command_queue queue,
31                                             int num_elements);
32 extern int test_semaphores_cross_queues_io(cl_device_id deviceID,
33                                            cl_context context,
34                                            cl_command_queue queue,
35                                            int num_elements);
36 extern int test_semaphores_multi_signal(cl_device_id deviceID,
37                                         cl_context context,
38                                         cl_command_queue queue,
39                                         int num_elements);
40 extern int test_semaphores_multi_wait(cl_device_id deviceID, cl_context context,
41                                       cl_command_queue queue, int num_elements);
42 extern int test_semaphores_queries(cl_device_id deviceID, cl_context context,
43                                    cl_command_queue queue, int num_elements);
44 extern int test_semaphores_import_export_fd(cl_device_id deviceID,
45                                             cl_context context,
46                                             cl_command_queue queue,
47                                             int num_elements);
48