fix the spelling in whole piglit
[piglit.git] / generated_tests / cl / store / store-kernels-local.inc
blob6692e3761420e8836a4db8dde88e4ea48eea7416
1 #if TYPE == double
2 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
3 #endif
5 typedef TYPE type_t;
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];