• 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 TEST_COMMON_CONFIG_HPP
17 #define TEST_COMMON_CONFIG_HPP
18 
19 // Enable development options for OpenCL C++ tests (test_conformance/clpp)
20 // #define DEVELOPMENT
21 #if defined(CLPP_DEVELOPMENT_OPTIONS) && !defined(DEVELOPMENT)
22     #define DEVELOPMENT
23 #endif
24 
25 #ifdef DEVELOPMENT
26     // If defined OpenCL C++ tests only checks if OpenCL C++ kernels compiles correctly
27     // #define ONLY_SPIRV_COMPILATION
28     #if defined(CLPP_DEVELOPMENT_ONLY_SPIRV_COMPILATION) && !defined(ONLY_SPIRV_COMPILATION)
29         #define ONLY_SPIRV_COMPILATION
30     #endif
31 
32     #ifndef ONLY_SPIRV_COMPILATION
33         // If defined OpenCL C++ tests are run using OpenCL C kernels
34         // #define USE_OPENCLC_KERNELS
35         #if defined(CLPP_DEVELOPMENT_USE_OPENCLC_KERNELS) && !defined(USE_OPENCLC_KERNELS)
36             #define USE_OPENCLC_KERNELS
37         #endif
38     #endif
39 #endif
40 
41 #endif // TEST_COMMON_CONFIG_HPP