diff options
author | Homer Hsing <homer.xing@intel.com> | 2012-11-20 11:01:31 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-03-29 18:41:32 +0800 |
commit | 2a41896e21369bf17fdef20579a8948d632de1cd (patch) | |
tree | e667273aa8f406e8cce9640f21ad84ff2c47cd08 /kernels | |
parent | d69faef593fc266883f4a55bf9ed3de110b50b0f (diff) |
Test case for OpenCL 1.1 Preprocessor Directives & Macros
Diffstat (limited to 'kernels')
-rw-r--r-- | kernels/compiler_preprocessor_macros.cl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernels/compiler_preprocessor_macros.cl b/kernels/compiler_preprocessor_macros.cl new file mode 100644 index 00000000..2604adf1 --- /dev/null +++ b/kernels/compiler_preprocessor_macros.cl @@ -0,0 +1,13 @@ +/* test case for OpenCL 1.1 Preprocessor Directives & Macros (section 6.9) */ +__kernel void compiler_preprocessor_macros() +{ +#pragma OPENCL FP_CONTRACT ON +#pragma OPENCL FP_CONTRACT OFF +#pragma OPENCL FP_CONTRACT DEFAULT + int i = __OPENCL_VERSION__; + i = __CL_VERSION_1_0__; + i = __CL_VERSION_1_1__; + i = __ENDIAN_LITTLE__; + i = __IMAGE_SUPPORT__; + i = __FAST_RELAXED_MATH__; +} |