xref: /aosp_15_r20/external/OpenCL-CTS/test_conformance/vectors/defines.h (revision 6467f958c7de8070b317fc65bcb0f6472e388d82)
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 #include "harness/errorHelpers.h"
17 #include "harness/kernelHelpers.h"
18 #include "harness/typeWrappers.h"
19 #include "harness/conversions.h"
20 #include "harness/mt19937.h"
21 
22 
23 // 1,2,3,4,8,16 or
24 // 1,2,4,8,16,3
25 #define NUM_VECTOR_SIZES 6
26 
27 extern int g_arrVecSizes[NUM_VECTOR_SIZES];
28 extern int g_arrVecSteps[NUM_VECTOR_SIZES];
29 extern bool g_wimpyMode;
30 
31 extern const char *g_arrVecSizeNames[NUM_VECTOR_SIZES];
32 extern size_t g_arrVecAlignMasks[NUM_VECTOR_SIZES];
33 
34 // Define the buffer size that we want to block our test with
35 #define BUFFER_SIZE (1024 * 1024)
36 #define KPAGESIZE 4096
37 
38 extern ExplicitType types[];
39 
40 extern const char *g_arrTypeNames[];
41 extern const size_t g_arrTypeSizes[];
42