GPU Programming: Threads, Blocks, and Grids

This visualization shows how GPU programming organizes parallel computation into threads, blocks, and grids. Adjust the sliders to see how the structure changes.

Thread Block Dimensions

Grid Dimensions

T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T
T

Total Threads: 64

Threads per Block: 16

Total Blocks: 4