Forum Discussion
tde_m
Occasional Contributor
7 years agoMultiple read/write from channels
Hello, I've two kernels: a producer (that generates a stream of float numbers) and a consumer (that read the numbers and compute the sum): #define W 32
channel float channel_float __attribute__((d...
HRZ
Frequent Contributor
7 years agoYou might be able to avoid the issue by merging both channel reads and both channel writes into one read and one write and instead use an "if" condition inside of the unrolled read/write loops to avoid reading/writing the out-of-bound data.