Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Journeyman III


exchange values by index


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.

kernel void
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.


10 Replies