GPUFlight Knowledge Library
GPUFLIGHT / KNOWLEDGE LIBRARY

How GPU programs work

Understand how threads find their data, how a block shares results, and how a line of CUDA becomes machine instructions. Each reading follows one example. No GPU or setup is required.

Figure 01 / Thread ownershipy = 2
BLOCK 0BLOCK 1BLOCK 20123456789101111 image columns

x = 10 owns the last pixel. x = 11 has no pixel.

01 / EXPLAINERS

Three questions to start with

Read in order or follow a question.

02 / REFERENCE

Go deeper

Ready to profile and optimize a kernel? Visit Performance Lab ↗