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