Zhenkun Li

Results 2 issues of Zhenkun Li

樊老师好,读完您的著作,对cuda编程有了很多新的认识。读书过程中发现了一处问题,P108提到”如果想要在循环内去掉对线程号的约束,又要避免出现读-写竞争,可以将相关代码改写如下: ``` C++ real v = 0; for (int offset = 16; offset > 0; offset >>= 1) { v += s_y[tid + offset]; __syncwarp(); s_y[tid] = v; __syncwarp(); }...

No "to" attribute exist in tuple object in example 4. Unit tests don‘t complain this since only CPU backend is tested. Suggest add more examples with GPU enabled.