blob: e5f7939b480ff3c94b8795c85e6dac371d27f31a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
kernel void compiler_long_convert(global char *src1, global short *src2, global int *src3, global long *dst1, global long *dst2, global long *dst3) {
int i = get_global_id(0);
dst1[i] = src1[i];
dst2[i] = src2[i];
dst3[i] = src3[i];
}
kernel void compiler_long_convert_2(global char *dst1, global short *dst2, global int *dst3, global long *src) {
int i = get_global_id(0);
dst1[i] = src[i];
dst2[i] = src[i];
dst3[i] = src[i];
}
kernel void compiler_long_convert_to_float(global float *dst, global long *src) {
int i = get_global_id(0);
dst[i] = src[i];
}
|