| ATI Stream Computing Update | Confidential 16 | ATI Stream Computing – OpenCL™ Histogram Optimization Illustration Kernel, LDS banks #define NBANKS 16 uint offset = (uint) ltid % (uint) (NBANKS); for( i=0, idx=tid; i<n4VectorsPerThread; i++, idx += Stride ) { temp = Image[idx]; temp2 = (temp & msk) * (uint4) NBANKS + offset; … 0123456789ABCDEF LDS addr 0 NBANKS = 1 0000000000000000 1111111111111111 2222222222222222 LDS addr 0 LDS addr 0x10 LDS addr 0x20 NBANKS = 16
{}