What is Single instruction, multiple threads (SIMT)?

An execution model in which programs are written per thread while hardware bundles threads into warps (32 on NVIDIA) that execute the same instruction in lockstep.

Field: GPU Programming

Japanese name: SIMT

How SIMT executes threads

In the single instruction, multiple threads (SIMT) model, the programmer writes a kernel as ordinary code for one thread, and thousands of threads run it on different data. The hardware groups threads into fixed bundles, called warps of 32 threads on NVIDIA GPUs and wavefronts of 64 or 32 on AMD GPUs. One instruction is fetched and decoded for the whole bundle and executed by all its threads in lockstep, each with its own registers and data. This amortizes control logic over many arithmetic lanes, so most of the chip area goes to computation.

Branch divergence

Because each thread is written independently, threads in one warp may take different branches. The hardware handles this by executing each path in turn, with the threads not on that path masked off, and then reconverging. Correctness is preserved, but if half the threads take each side of an if-else, the warp spends time on both and its throughput roughly halves. Performance-aware code arranges data so that threads in the same warp follow the same path, for example by making branch conditions depend on the warp index rather than on each thread's data.

SIMT vs. CPU SIMD

CPU single instruction, multiple data (SIMD) extensions apply one instruction to a vector register holding a fixed number of elements, such as 4 or 8. The program or the compiler must be written around that width, with explicit vector instructions and masks for edge cases. SIMT hides the width: the code describes a scalar thread, and the hardware forms the vectors from many threads and manages masking on divergence. Underneath, the execution is similar, which is why SIMT performance still depends on keeping threads in a warp in step.

Practical consequences

Several common GPU programming rules follow from SIMT. Thread-block sizes are normally multiples of 32 so no warp runs partly empty. Memory accesses are fastest when neighboring threads in a warp access neighboring addresses, letting the hardware combine them into a few wide transactions, a pattern called coalescing. And GPUs hide long memory latency by keeping many warps resident and switching to another ready warp whenever one stalls, which is why high occupancy, enough active warps per core, often matters for performance.

Try it: questions about Single instruction, multiple threads (SIMT)

How does the GPU SIMT (single instruction, multiple threads) model differ from CPU SIMD instructions?

  1. ASIMT applies many instructions to one datum; SIMD applies one instruction to one datum
  2. BSIMT and SIMD are exactly the same with different names
  3. CIn SIMT each thread can be written as an independent program and the hardware handles branches; with SIMD the programmer or compiler explicitly uses fixed-width vector instructions
Show answer and explanation

Answer: C. In SIMT each thread can be written as an independent program and the hardware handles branches; with SIMD the programmer or compiler explicitly uses fixed-width vector instructions

CPU SIMD applies one instruction to a vector register holding 4 or 8 data items, so programs are written with the vector width in mind. With GPU SIMT the programmer writes ordinary code for a single thread, and the hardware bundles 32 threads to execute in lockstep. Threads may branch differently; the hardware executes the divergent paths one after another, though efficiency drops when it does.

FAQ

What is a warp in GPU computing?

A warp is a group of 32 threads on NVIDIA GPUs that execute the same instruction together in lockstep. It is the basic unit of instruction issue in the SIMT model; AMD's equivalent is called a wavefront.

What is the difference between SIMT and SIMD?

SIMD exposes fixed-width vector instructions that the programmer or compiler must use explicitly. SIMT lets each thread be written as independent scalar code while the hardware groups threads into warps and handles divergent branches.

What is warp divergence?

Warp divergence occurs when threads in the same warp take different branch paths. The hardware executes each path serially with inactive threads masked, which lowers efficiency until the paths reconverge.

Questions that mention Single instruction, multiple threads (SIMT) (1)

Single instruction, multiple threads (SIMT) appears in 2 practice questions across 1 topic, including GPU Programming.

  1. On NVIDIA GPUs, what is the unit of 32 threads bundled together to execute the same instruction in lockstep called?

Books on GPU Programming Ad

As an Amazon Associate I earn from qualifying purchases.

Comparisons that include this term

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary