grid, block, thread,
http://reference.wolfram.com/mathematica/CUDALink/tutorial/Programming.html
http://www.evl.uic.edu/aej/525/lecture05.html
For a one-dimensional block, the index of a thread and its thread ID are the same;
for a 2D block of size (Dx, Dy), the thread ID of the thread with index (x, y) is (x + y Dx);
for a 3D block of size (Dx, Dy, Dz), the thread ID of the thread with index (x, y, z) is (x + y Dx + z Dx Dy).
http://nvidia.e-works.net.cn/document/200906/article8337_2.htm
转载请注明出处