• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright (c) 2017 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 _procs_h
17 #define _procs_h
18 
19 #include "harness/testHarness.h"
20 #include "harness/kernelHelpers.h"
21 #include "harness/errorHelpers.h"
22 #include "harness/conversions.h"
23 #include "harness/threadTesting.h"
24 #include "harness/typeWrappers.h"
25 #include "harness/mt19937.h"
26 
27 extern MTdata gMTdata;
28 
29 extern int test_sub_group_info_ext(cl_device_id device, cl_context context,
30                                    cl_command_queue queue, int num_elements);
31 extern int test_sub_group_info_core(cl_device_id device, cl_context context,
32                                     cl_command_queue queue, int num_elements);
33 extern int test_work_item_functions_ext(cl_device_id device, cl_context context,
34                                         cl_command_queue queue,
35                                         int num_elements);
36 extern int test_work_item_functions_core(cl_device_id device,
37                                          cl_context context,
38                                          cl_command_queue queue,
39                                          int num_elements);
40 extern int test_subgroup_functions_ext(cl_device_id device, cl_context context,
41                                        cl_command_queue queue,
42                                        int num_elements);
43 extern int test_subgroup_functions_core(cl_device_id device, cl_context context,
44                                         cl_command_queue queue,
45                                         int num_elements);
46 extern int test_barrier_functions_ext(cl_device_id device, cl_context context,
47                                       cl_command_queue queue, int num_elements);
48 extern int test_barrier_functions_core(cl_device_id device, cl_context context,
49                                        cl_command_queue queue,
50                                        int num_elements);
51 extern int test_pipe_functions(cl_device_id device, cl_context context,
52                                cl_command_queue queue, int num_elements);
53 extern int test_ifp_ext(cl_device_id device, cl_context context,
54                         cl_command_queue queue, int num_elements);
55 extern int test_ifp_core(cl_device_id device, cl_context context,
56                          cl_command_queue queue, int num_elements);
57 extern int test_subgroup_functions_extended_types(cl_device_id device,
58                                                   cl_context context,
59                                                   cl_command_queue queue,
60                                                   int num_elements);
61 extern int test_subgroup_functions_non_uniform_vote(cl_device_id device,
62                                                     cl_context context,
63                                                     cl_command_queue queue,
64                                                     int num_elements);
65 extern int test_subgroup_functions_non_uniform_arithmetic(
66     cl_device_id device, cl_context context, cl_command_queue queue,
67     int num_elements);
68 extern int test_subgroup_functions_ballot(cl_device_id device,
69                                           cl_context context,
70                                           cl_command_queue queue,
71                                           int num_elements);
72 extern int test_subgroup_functions_clustered_reduce(cl_device_id device,
73                                                     cl_context context,
74                                                     cl_command_queue queue,
75                                                     int num_elements);
76 extern int test_subgroup_functions_shuffle(cl_device_id device,
77                                            cl_context context,
78                                            cl_command_queue queue,
79                                            int num_elements);
80 extern int test_subgroup_functions_shuffle_relative(cl_device_id device,
81                                                     cl_context context,
82                                                     cl_command_queue queue,
83                                                     int num_elements);
84 extern int test_subgroup_functions_rotate(cl_device_id device,
85                                           cl_context context,
86                                           cl_command_queue queue,
87                                           int num_elements);
88 #endif /*_procs_h*/
89