ryta1203

Problems with gather

Discussion created by ryta1203 on Jul 14, 2008
Latest reply on Jul 19, 2008 by ryta1203
Not sure why this is not compiling (get "expect gather...blah blah blah", any help woud be great, from anybody:


kernel void foo(float4 before_in[][], float4 out before_out[][])
{
float4 temp[100];
int x=0;
if (indexof(before_out) < 3)
{
// transfer to temp
for (x=0;x<100;x++)
{
temp[x] = before_in[indexof(before_out)][x];
}
// do some work on temp (reads/writes) here

// transfer to before_out
for (x=0;x<100;x++)
{
before_out[indexof(before_out)][x] = temp[x];
}
}
}

Outcomes