tgm@ncic.ac.cn

Brook+ accumulate operation

Discussion created by tgm@ncic.ac.cn on Jan 4, 2009
Latest reply on Jan 4, 2009 by gaurav.garg

Brook+ does not allow output stream is accumulated ?

For example:

kernel void test(float a[], float b<>

{

tid = instance().x

b += a[tid];

}

The elements in output stream sometimes are NAN.

Outcomes