A 1D launch kernel<<<gridDim, blockDim>>> drawn as rows of blocks. Each square is one thread. Pick a block and thread to see which global index i it computes, and what that thread does in a vector-add kernel over n elements.
Kernel, as run by the selected thread
Arrays near the selected element · a[i] = b[i] = i + 1