GPU Programming
On NVIDIA GPUs, what is the unit of 32 threads bundled together to execute the same instruction in lockstep called?
- AA warp
- BA grid
- CA page
Show answer and explanation
Answer: A. A warp
Inside the hardware, a block's threads are grouped into warps of 32, and the 32 threads of a warp execute the same instruction at the same time on different data. Running code written as threads in lockstep bundles like this is called SIMT. AMD GPUs call the similar unit a wavefront, of 64 or 32 threads. Block sizes should normally be multiples of 32.
- A. Correct. It is the unit the hardware schedules.
- B. A grid is the whole of one kernel launch.
- C. A page is a unit of virtual memory.