2 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
7 kernel void store_local(global type_t *out, global type_t *in) {
8 local type_t local_data[8];
9 size_t id = get_local_id(0);
10 size_t store_index = (id + 1) % 8;
11 local_data[store_index] = in[store_index];
12 barrier(CLK_LOCAL_MEM_FENCE);
13 out[id] = local_data[id];