Created
August 5, 2018 16:38
-
-
Save jrprice/05d8485880b3a7eb42ad3857a62e0bb5 to your computer and use it in GitHub Desktop.
Changes generated by new regex for stripping features in clspv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31d30 | |
< unsigned int __ovld __cnfn get_work_dim(void); | |
1788a1788,1861 | |
> #define as_uchar(x) __builtin_astype((x), uchar) | |
> #define as_uchar2(x) __builtin_astype((x), uchar2) | |
> #define as_uchar3(x) __builtin_astype((x), uchar3) | |
> #define as_uchar4(x) __builtin_astype((x), uchar4) | |
> | |
> #define as_short(x) __builtin_astype((x), short) | |
> #define as_short2(x) __builtin_astype((x), short2) | |
> #define as_short3(x) __builtin_astype((x), short3) | |
> #define as_short4(x) __builtin_astype((x), short4) | |
> | |
> #define as_ushort(x) __builtin_astype((x), ushort) | |
> #define as_ushort2(x) __builtin_astype((x), ushort2) | |
> #define as_ushort3(x) __builtin_astype((x), ushort3) | |
> #define as_ushort4(x) __builtin_astype((x), ushort4) | |
> | |
> #define as_int(x) __builtin_astype((x), int) | |
> #define as_int2(x) __builtin_astype((x), int2) | |
> #define as_int3(x) __builtin_astype((x), int3) | |
> #define as_int4(x) __builtin_astype((x), int4) | |
> | |
> #define as_uint(x) __builtin_astype((x), uint) | |
> #define as_uint2(x) __builtin_astype((x), uint2) | |
> #define as_uint3(x) __builtin_astype((x), uint3) | |
> #define as_uint4(x) __builtin_astype((x), uint4) | |
> | |
> #define as_long(x) __builtin_astype((x), long) | |
> #define as_long2(x) __builtin_astype((x), long2) | |
> #define as_long3(x) __builtin_astype((x), long3) | |
> #define as_long4(x) __builtin_astype((x), long4) | |
> | |
> #define as_ulong(x) __builtin_astype((x), ulong) | |
> #define as_ulong2(x) __builtin_astype((x), ulong2) | |
> #define as_ulong3(x) __builtin_astype((x), ulong3) | |
> #define as_ulong4(x) __builtin_astype((x), ulong4) | |
> | |
> #define as_float(x) __builtin_astype((x), float) | |
> #define as_float2(x) __builtin_astype((x), float2) | |
> #define as_float3(x) __builtin_astype((x), float3) | |
> #define as_float4(x) __builtin_astype((x), float4) | |
> | |
> #ifdef cl_khr_fp64 | |
> #define as_double(x) __builtin_astype((x), double) | |
> #define as_double2(x) __builtin_astype((x), double2) | |
> #define as_double3(x) __builtin_astype((x), double3) | |
> #define as_double4(x) __builtin_astype((x), double4) | |
> #endif //cl_khr_fp64 | |
> | |
> #ifdef cl_khr_fp16 | |
> #define as_half(x) __builtin_astype((x), half) | |
> #define as_half2(x) __builtin_astype((x), half2) | |
> #define as_half3(x) __builtin_astype((x), half3) | |
> #define as_half4(x) __builtin_astype((x), half4) | |
> #endif //cl_khr_fp16 | |
> | |
> // OpenCL v1.1 s6.9, v1.2/2.0 s6.10 - Function qualifiers | |
> | |
> #define __kernel_exec(X, typen) __kernel \ | |
> __attribute__((work_group_size_hint(X, 1, 1))) \ | |
> __attribute__((vec_type_hint(typen))) | |
> | |
> #define kernel_exec(X, typen) __kernel \ | |
> __attribute__((work_group_size_hint(X, 1, 1))) \ | |
> __attribute__((vec_type_hint(typen))) | |
> | |
> // OpenCL v1.1 s6.11.1, v1.2 s6.12.1, v2.0 s6.13.1 - Work-item Functions | |
> | |
> /** | |
> * Returns the number of dimensions in use. This is the | |
> * value given to the work_dim argument specified in | |
> * clEnqueueNDRangeKernel. | |
> * For clEnqueueTask, this returns 1. | |
> */ | |
> uint __ovld __cnfn get_work_dim(void); | |
> | |
7427a7501 | |
> * 4, 5, 6, 7); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment