what i want to do is a swap. iam using Brook+
i call the kernel with a datastrea. in the kernel i want to change some specific values of this stream according to the index.
to have acces to the index, i cant use a stream so i use gather array.
ABC(int dir, int m0, float x,...
but a gather array is read only so i cant change the values.
is there a build in function that i missed?
local arrays are also forbidden, a local stream could help, eventually. but i dont know how to fill it, within the kernel function.
thank you for helping.