blob: fda49b9a746300a76fe1b4ecf6e477611ca51b81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
__kernel void
compiler_load_bool_imm(__global int *dst, __local int *localBuffer, int copiesPerWorkItem )
{
int i;
for(i=0; i<copiesPerWorkItem; i++)
localBuffer[get_local_id(0)*copiesPerWorkItem+i] = copiesPerWorkItem;
barrier(CLK_LOCAL_MEM_FENCE);
for(i=0; i<copiesPerWorkItem; i++)
dst[get_global_id(0)*copiesPerWorkItem + i] = localBuffer[get_local_id(0)*copiesPerWorkItem+i];
barrier(CLK_LOCAL_MEM_FENCE);
}
|