From 8b2fdc9dd3e0c66394e1a2f50ca9364d9195fbfe Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Thu, 9 Aug 2018 11:42:38 +0100 Subject: COMPMID-1478: Updated OpenCL headers to the latest Khronos ones Change-Id: Ie26b78c9da635206c96111ea490ac565063838ba Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/143408 Tested-by: Jenkins Reviewed-by: Pablo Tello --- include/CL/cl_platform.h | 224 ++++++++++++++++++++++++----------------------- 1 file changed, 113 insertions(+), 111 deletions(-) (limited to 'include/CL/cl_platform.h') diff --git a/include/CL/cl_platform.h b/include/CL/cl_platform.h index 15702d2f72..c2f408fed5 100644 --- a/include/CL/cl_platform.h +++ b/include/CL/cl_platform.h @@ -1,5 +1,5 @@ /********************************************************************************** - * Copyright (c) 2008-2015 The Khronos Group Inc. + * Copyright (c) 2008-2018 The Khronos Group Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and/or associated documentation files (the @@ -26,14 +26,16 @@ * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. **********************************************************************************/ -/* $Revision: 11803 $ on $Date: 2010-06-25 10:02:12 -0700 (Fri, 25 Jun 2010) $ */ - #ifndef __CL_PLATFORM_H #define __CL_PLATFORM_H #ifdef __APPLE__ + #include + /* Contains #defines for AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER below */ #include +#else + #include #endif #ifdef __cplusplus @@ -66,7 +68,7 @@ extern "C" { #define GCL_API_SUFFIX__VERSION_1_1 AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER #define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER #define CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 - + #ifdef AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER #define CL_API_SUFFIX__VERSION_1_2 AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER #define GCL_API_SUFFIX__VERSION_1_2 AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER @@ -81,7 +83,7 @@ extern "C" { #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER #endif #else - #define CL_EXTENSION_WEAK_LINK + #define CL_EXTENSION_WEAK_LINK #define CL_API_SUFFIX__VERSION_1_0 #define CL_EXT_SUFFIX__VERSION_1_0 #define CL_API_SUFFIX__VERSION_1_1 @@ -94,22 +96,22 @@ extern "C" { #define CL_EXT_SUFFIX__VERSION_2_1 #define CL_API_SUFFIX__VERSION_2_2 #define CL_EXT_SUFFIX__VERSION_2_2 - + #ifdef __GNUC__ #ifdef CL_USE_DEPRECATED_OPENCL_1_0_APIS #define CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED - #define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED + #define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED #else #define CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED __attribute__((deprecated)) - #define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED + #define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED #endif - + #ifdef CL_USE_DEPRECATED_OPENCL_1_1_APIS - #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED - #define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED + #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED + #define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED #else #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED __attribute__((deprecated)) - #define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED + #define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED #endif #ifdef CL_USE_DEPRECATED_OPENCL_1_2_APIS @@ -138,20 +140,20 @@ extern "C" { #elif defined(_WIN32) #ifdef CL_USE_DEPRECATED_OPENCL_1_0_APIS #define CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED - #define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED + #define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED #else - #define CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED - #define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED __declspec(deprecated) + #define CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED + #define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED __declspec(deprecated) #endif - + #ifdef CL_USE_DEPRECATED_OPENCL_1_1_APIS #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED - #define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED + #define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED #else - #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED - #define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED __declspec(deprecated) + #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED + #define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED __declspec(deprecated) #endif - + #ifdef CL_USE_DEPRECATED_OPENCL_1_2_APIS #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED #define CL_EXT_PREFIX__VERSION_1_2_DEPRECATED @@ -164,7 +166,7 @@ extern "C" { #define CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED #define CL_EXT_PREFIX__VERSION_2_0_DEPRECATED #else - #define CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED + #define CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED #define CL_EXT_PREFIX__VERSION_2_0_DEPRECATED __declspec(deprecated) #endif @@ -178,10 +180,10 @@ extern "C" { #else #define CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED #define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED - + #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED #define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED - + #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED #define CL_EXT_PREFIX__VERSION_1_2_DEPRECATED @@ -397,7 +399,7 @@ typedef double cl_double __attribute__((aligned(8))); #define CL_HUGE_VALF ((cl_float) 1e50) #define CL_HUGE_VAL ((cl_double) 1e500) float nanf( const char * ); - #define CL_NAN nanf( "" ) + #define CL_NAN nanf( "" ) #endif #define CL_MAXFLOAT CL_FLT_MAX #define CL_INFINITY CL_HUGE_VALF @@ -412,17 +414,17 @@ typedef int cl_GLint; typedef unsigned int cl_GLenum; /* - * Vector types + * Vector types * - * Note: OpenCL requires that all types be naturally aligned. + * Note: OpenCL requires that all types be naturally aligned. * This means that vector types must be naturally aligned. * For example, a vector of four floats must be aligned to - * a 16 byte boundary (calculated as 4 * the natural 4-byte + * a 16 byte boundary (calculated as 4 * the natural 4-byte * alignment of the float). The alignment qualifiers here * will only function properly if your compiler supports them * and if you don't actively work to defeat them. For example, * in order for a cl_float4 to be 16 byte aligned in a struct, - * the start of the struct must itself be 16-byte aligned. + * the start of the struct must itself be 16-byte aligned. * * Maintaining proper alignment is the user's responsibility. */ @@ -536,7 +538,7 @@ typedef unsigned int cl_GLenum; #if defined( __MINGW64__ ) #include #else - #include + #include #endif #if defined( __GNUC__ ) typedef cl_float __cl_float8 __attribute__((vector_size(32))); @@ -605,7 +607,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_char s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_char lo, hi; }; #endif -#if defined( __CL_CHAR2__) +#if defined( __CL_CHAR2__) __cl_char2 v2; #endif }cl_char2; @@ -618,10 +620,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_char s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_char2 lo, hi; }; #endif -#if defined( __CL_CHAR2__) +#if defined( __CL_CHAR2__) __cl_char2 v2[2]; #endif -#if defined( __CL_CHAR4__) +#if defined( __CL_CHAR4__) __cl_char4 v4; #endif }cl_char4; @@ -637,10 +639,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_char s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_char4 lo, hi; }; #endif -#if defined( __CL_CHAR2__) +#if defined( __CL_CHAR2__) __cl_char2 v2[4]; #endif -#if defined( __CL_CHAR4__) +#if defined( __CL_CHAR4__) __cl_char4 v4[2]; #endif #if defined( __CL_CHAR8__ ) @@ -656,10 +658,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_char s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_char8 lo, hi; }; #endif -#if defined( __CL_CHAR2__) +#if defined( __CL_CHAR2__) __cl_char2 v2[8]; #endif -#if defined( __CL_CHAR4__) +#if defined( __CL_CHAR4__) __cl_char4 v4[4]; #endif #if defined( __CL_CHAR8__ ) @@ -680,7 +682,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_uchar s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_uchar lo, hi; }; #endif -#if defined( __cl_uchar2__) +#if defined( __cl_uchar2__) __cl_uchar2 v2; #endif }cl_uchar2; @@ -693,10 +695,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_uchar s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_uchar2 lo, hi; }; #endif -#if defined( __CL_UCHAR2__) +#if defined( __CL_UCHAR2__) __cl_uchar2 v2[2]; #endif -#if defined( __CL_UCHAR4__) +#if defined( __CL_UCHAR4__) __cl_uchar4 v4; #endif }cl_uchar4; @@ -712,10 +714,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_uchar s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_uchar4 lo, hi; }; #endif -#if defined( __CL_UCHAR2__) +#if defined( __CL_UCHAR2__) __cl_uchar2 v2[4]; #endif -#if defined( __CL_UCHAR4__) +#if defined( __CL_UCHAR4__) __cl_uchar4 v4[2]; #endif #if defined( __CL_UCHAR8__ ) @@ -731,10 +733,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_uchar s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_uchar8 lo, hi; }; #endif -#if defined( __CL_UCHAR2__) +#if defined( __CL_UCHAR2__) __cl_uchar2 v2[8]; #endif -#if defined( __CL_UCHAR4__) +#if defined( __CL_UCHAR4__) __cl_uchar4 v4[4]; #endif #if defined( __CL_UCHAR8__ ) @@ -755,7 +757,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_short s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_short lo, hi; }; #endif -#if defined( __CL_SHORT2__) +#if defined( __CL_SHORT2__) __cl_short2 v2; #endif }cl_short2; @@ -768,10 +770,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_short s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_short2 lo, hi; }; #endif -#if defined( __CL_SHORT2__) +#if defined( __CL_SHORT2__) __cl_short2 v2[2]; #endif -#if defined( __CL_SHORT4__) +#if defined( __CL_SHORT4__) __cl_short4 v4; #endif }cl_short4; @@ -787,10 +789,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_short s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_short4 lo, hi; }; #endif -#if defined( __CL_SHORT2__) +#if defined( __CL_SHORT2__) __cl_short2 v2[4]; #endif -#if defined( __CL_SHORT4__) +#if defined( __CL_SHORT4__) __cl_short4 v4[2]; #endif #if defined( __CL_SHORT8__ ) @@ -806,10 +808,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_short s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_short8 lo, hi; }; #endif -#if defined( __CL_SHORT2__) +#if defined( __CL_SHORT2__) __cl_short2 v2[8]; #endif -#if defined( __CL_SHORT4__) +#if defined( __CL_SHORT4__) __cl_short4 v4[4]; #endif #if defined( __CL_SHORT8__ ) @@ -830,7 +832,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_ushort s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_ushort lo, hi; }; #endif -#if defined( __CL_USHORT2__) +#if defined( __CL_USHORT2__) __cl_ushort2 v2; #endif }cl_ushort2; @@ -843,10 +845,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_ushort s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_ushort2 lo, hi; }; #endif -#if defined( __CL_USHORT2__) +#if defined( __CL_USHORT2__) __cl_ushort2 v2[2]; #endif -#if defined( __CL_USHORT4__) +#if defined( __CL_USHORT4__) __cl_ushort4 v4; #endif }cl_ushort4; @@ -862,10 +864,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_ushort s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_ushort4 lo, hi; }; #endif -#if defined( __CL_USHORT2__) +#if defined( __CL_USHORT2__) __cl_ushort2 v2[4]; #endif -#if defined( __CL_USHORT4__) +#if defined( __CL_USHORT4__) __cl_ushort4 v4[2]; #endif #if defined( __CL_USHORT8__ ) @@ -881,10 +883,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_ushort s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_ushort8 lo, hi; }; #endif -#if defined( __CL_USHORT2__) +#if defined( __CL_USHORT2__) __cl_ushort2 v2[8]; #endif -#if defined( __CL_USHORT4__) +#if defined( __CL_USHORT4__) __cl_ushort4 v4[4]; #endif #if defined( __CL_USHORT8__ ) @@ -905,7 +907,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_half s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_half lo, hi; }; #endif -#if defined( __CL_HALF2__) +#if defined( __CL_HALF2__) __cl_half2 v2; #endif }cl_half2; @@ -918,10 +920,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_half s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_half2 lo, hi; }; #endif -#if defined( __CL_HALF2__) +#if defined( __CL_HALF2__) __cl_half2 v2[2]; #endif -#if defined( __CL_HALF4__) +#if defined( __CL_HALF4__) __cl_half4 v4; #endif }cl_half4; @@ -937,10 +939,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_half s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_half4 lo, hi; }; #endif -#if defined( __CL_HALF2__) +#if defined( __CL_HALF2__) __cl_half2 v2[4]; #endif -#if defined( __CL_HALF4__) +#if defined( __CL_HALF4__) __cl_half4 v4[2]; #endif #if defined( __CL_HALF8__ ) @@ -956,10 +958,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_half s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_half8 lo, hi; }; #endif -#if defined( __CL_HALF2__) +#if defined( __CL_HALF2__) __cl_half2 v2[8]; #endif -#if defined( __CL_HALF4__) +#if defined( __CL_HALF4__) __cl_half4 v4[4]; #endif #if defined( __CL_HALF8__ ) @@ -979,7 +981,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_int s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_int lo, hi; }; #endif -#if defined( __CL_INT2__) +#if defined( __CL_INT2__) __cl_int2 v2; #endif }cl_int2; @@ -992,10 +994,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_int s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_int2 lo, hi; }; #endif -#if defined( __CL_INT2__) +#if defined( __CL_INT2__) __cl_int2 v2[2]; #endif -#if defined( __CL_INT4__) +#if defined( __CL_INT4__) __cl_int4 v4; #endif }cl_int4; @@ -1011,10 +1013,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_int s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_int4 lo, hi; }; #endif -#if defined( __CL_INT2__) +#if defined( __CL_INT2__) __cl_int2 v2[4]; #endif -#if defined( __CL_INT4__) +#if defined( __CL_INT4__) __cl_int4 v4[2]; #endif #if defined( __CL_INT8__ ) @@ -1030,10 +1032,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_int s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_int8 lo, hi; }; #endif -#if defined( __CL_INT2__) +#if defined( __CL_INT2__) __cl_int2 v2[8]; #endif -#if defined( __CL_INT4__) +#if defined( __CL_INT4__) __cl_int4 v4[4]; #endif #if defined( __CL_INT8__ ) @@ -1054,7 +1056,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_uint s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_uint lo, hi; }; #endif -#if defined( __CL_UINT2__) +#if defined( __CL_UINT2__) __cl_uint2 v2; #endif }cl_uint2; @@ -1067,10 +1069,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_uint s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_uint2 lo, hi; }; #endif -#if defined( __CL_UINT2__) +#if defined( __CL_UINT2__) __cl_uint2 v2[2]; #endif -#if defined( __CL_UINT4__) +#if defined( __CL_UINT4__) __cl_uint4 v4; #endif }cl_uint4; @@ -1086,10 +1088,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_uint s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_uint4 lo, hi; }; #endif -#if defined( __CL_UINT2__) +#if defined( __CL_UINT2__) __cl_uint2 v2[4]; #endif -#if defined( __CL_UINT4__) +#if defined( __CL_UINT4__) __cl_uint4 v4[2]; #endif #if defined( __CL_UINT8__ ) @@ -1105,10 +1107,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_uint s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_uint8 lo, hi; }; #endif -#if defined( __CL_UINT2__) +#if defined( __CL_UINT2__) __cl_uint2 v2[8]; #endif -#if defined( __CL_UINT4__) +#if defined( __CL_UINT4__) __cl_uint4 v4[4]; #endif #if defined( __CL_UINT8__ ) @@ -1128,7 +1130,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_long s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_long lo, hi; }; #endif -#if defined( __CL_LONG2__) +#if defined( __CL_LONG2__) __cl_long2 v2; #endif }cl_long2; @@ -1141,10 +1143,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_long s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_long2 lo, hi; }; #endif -#if defined( __CL_LONG2__) +#if defined( __CL_LONG2__) __cl_long2 v2[2]; #endif -#if defined( __CL_LONG4__) +#if defined( __CL_LONG4__) __cl_long4 v4; #endif }cl_long4; @@ -1160,10 +1162,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_long s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_long4 lo, hi; }; #endif -#if defined( __CL_LONG2__) +#if defined( __CL_LONG2__) __cl_long2 v2[4]; #endif -#if defined( __CL_LONG4__) +#if defined( __CL_LONG4__) __cl_long4 v4[2]; #endif #if defined( __CL_LONG8__ ) @@ -1179,10 +1181,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_long s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_long8 lo, hi; }; #endif -#if defined( __CL_LONG2__) +#if defined( __CL_LONG2__) __cl_long2 v2[8]; #endif -#if defined( __CL_LONG4__) +#if defined( __CL_LONG4__) __cl_long4 v4[4]; #endif #if defined( __CL_LONG8__ ) @@ -1203,7 +1205,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_ulong s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_ulong lo, hi; }; #endif -#if defined( __CL_ULONG2__) +#if defined( __CL_ULONG2__) __cl_ulong2 v2; #endif }cl_ulong2; @@ -1216,10 +1218,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_ulong s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_ulong2 lo, hi; }; #endif -#if defined( __CL_ULONG2__) +#if defined( __CL_ULONG2__) __cl_ulong2 v2[2]; #endif -#if defined( __CL_ULONG4__) +#if defined( __CL_ULONG4__) __cl_ulong4 v4; #endif }cl_ulong4; @@ -1235,10 +1237,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_ulong s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_ulong4 lo, hi; }; #endif -#if defined( __CL_ULONG2__) +#if defined( __CL_ULONG2__) __cl_ulong2 v2[4]; #endif -#if defined( __CL_ULONG4__) +#if defined( __CL_ULONG4__) __cl_ulong4 v4[2]; #endif #if defined( __CL_ULONG8__ ) @@ -1254,10 +1256,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_ulong s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_ulong8 lo, hi; }; #endif -#if defined( __CL_ULONG2__) +#if defined( __CL_ULONG2__) __cl_ulong2 v2[8]; #endif -#if defined( __CL_ULONG4__) +#if defined( __CL_ULONG4__) __cl_ulong4 v4[4]; #endif #if defined( __CL_ULONG8__ ) @@ -1279,7 +1281,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_float s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_float lo, hi; }; #endif -#if defined( __CL_FLOAT2__) +#if defined( __CL_FLOAT2__) __cl_float2 v2; #endif }cl_float2; @@ -1292,10 +1294,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_float s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_float2 lo, hi; }; #endif -#if defined( __CL_FLOAT2__) +#if defined( __CL_FLOAT2__) __cl_float2 v2[2]; #endif -#if defined( __CL_FLOAT4__) +#if defined( __CL_FLOAT4__) __cl_float4 v4; #endif }cl_float4; @@ -1311,10 +1313,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_float s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_float4 lo, hi; }; #endif -#if defined( __CL_FLOAT2__) +#if defined( __CL_FLOAT2__) __cl_float2 v2[4]; #endif -#if defined( __CL_FLOAT4__) +#if defined( __CL_FLOAT4__) __cl_float4 v4[2]; #endif #if defined( __CL_FLOAT8__ ) @@ -1330,10 +1332,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_float s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_float8 lo, hi; }; #endif -#if defined( __CL_FLOAT2__) +#if defined( __CL_FLOAT2__) __cl_float2 v2[8]; #endif -#if defined( __CL_FLOAT4__) +#if defined( __CL_FLOAT4__) __cl_float4 v4[4]; #endif #if defined( __CL_FLOAT8__ ) @@ -1354,7 +1356,7 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_double s0, s1; }; __CL_ANON_STRUCT__ struct{ cl_double lo, hi; }; #endif -#if defined( __CL_DOUBLE2__) +#if defined( __CL_DOUBLE2__) __cl_double2 v2; #endif }cl_double2; @@ -1367,10 +1369,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_double s0, s1, s2, s3; }; __CL_ANON_STRUCT__ struct{ cl_double2 lo, hi; }; #endif -#if defined( __CL_DOUBLE2__) +#if defined( __CL_DOUBLE2__) __cl_double2 v2[2]; #endif -#if defined( __CL_DOUBLE4__) +#if defined( __CL_DOUBLE4__) __cl_double4 v4; #endif }cl_double4; @@ -1386,10 +1388,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_double s0, s1, s2, s3, s4, s5, s6, s7; }; __CL_ANON_STRUCT__ struct{ cl_double4 lo, hi; }; #endif -#if defined( __CL_DOUBLE2__) +#if defined( __CL_DOUBLE2__) __cl_double2 v2[4]; #endif -#if defined( __CL_DOUBLE4__) +#if defined( __CL_DOUBLE4__) __cl_double4 v4[2]; #endif #if defined( __CL_DOUBLE8__ ) @@ -1405,10 +1407,10 @@ typedef union __CL_ANON_STRUCT__ struct{ cl_double s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; }; __CL_ANON_STRUCT__ struct{ cl_double8 lo, hi; }; #endif -#if defined( __CL_DOUBLE2__) +#if defined( __CL_DOUBLE2__) __cl_double2 v2[8]; #endif -#if defined( __CL_DOUBLE4__) +#if defined( __CL_DOUBLE4__) __cl_double4 v4[4]; #endif #if defined( __CL_DOUBLE8__ ) @@ -1419,9 +1421,9 @@ typedef union #endif }cl_double16; -/* Macro to facilitate debugging +/* Macro to facilitate debugging * Usage: - * Place CL_PROGRAM_STRING_DEBUG_INFO on the line before the first line of your source. + * Place CL_PROGRAM_STRING_DEBUG_INFO on the line before the first line of your source. * The first line ends with: CL_PROGRAM_STRING_DEBUG_INFO \" * Each line thereafter of OpenCL C source must end with: \n\ * The last line ends in "; @@ -1436,13 +1438,13 @@ typedef union * } \n\ * "; * - * This should correctly set up the line, (column) and file information for your source + * This should correctly set up the line, (column) and file information for your source * string so you can do source level debugging. */ #define __CL_STRINGIFY( _x ) # _x #define _CL_STRINGIFY( _x ) __CL_STRINGIFY( _x ) -#define CL_PROGRAM_STRING_DEBUG_INFO "#line " _CL_STRINGIFY(__LINE__) " \"" __FILE__ "\" \n\n" - +#define CL_PROGRAM_STRING_DEBUG_INFO "#line " _CL_STRINGIFY(__LINE__) " \"" __FILE__ "\" \n\n" + #ifdef __cplusplus } #endif -- cgit v1.2.1