Core concept

Thread index within block, block index within grid. Global index computed from both.

Advertisement

How it works

Block size affects occupancy. Grid size determined by problem size.

Advertisement

Trade-offs + gotchas

Every kernel. Choose block size (multiple of 32). Grid to cover data.