What is Streaming multiprocessor?
On NVIDIA GPUs, a unit bundling arithmetic units, registers, shared memory and warp-scheduling circuitry. A GPU is built from many SMs.
Japanese name: ストリーミングマルチプロセッサ
On NVIDIA GPUs, a unit bundling arithmetic units, registers, shared memory and warp-scheduling circuitry. A GPU is built from many SMs.
Japanese name: ストリーミングマルチプロセッサ
An NVIDIA GPU is built as an array of many SMs. Each SM has a register file, circuits that perform arithmetic, and storage that serves as shared memory and L1 cache. It also contains schedulers that decide which warp issues its next instruction. The SM manages and executes threads in warps of 32. Its role resembles that of a CPU core, but it holds far more threads at once.
When a kernel is launched, the blocks of the grid are distributed to SMs that have capacity. One block runs on one SM, and one SM can hold several blocks at the same time. The SM partitions the blocks it receives into warps. A scheduler picks warps that are ready and issues their instructions. When a block finishes, the next block is placed on the freed SM.
The state of every warp on an SM stays on the SM until the warp finishes. Registers are allocated per warp and shared memory per block. Switching from one warp to another therefore costs nothing extra. Even when some warps are waiting for memory, the SM can keep its arithmetic units busy with instructions from other warps. How many warps fit at once depends on the registers and shared memory the kernel uses.
Answer: C. Each block is assigned to one SM and runs there to completion, and one SM may hold several blocks at once
A GPU has many SMs and assigns a kernel's blocks to free SMs in turn. A block runs on one SM, so its threads can use that SM's shared memory and synchronize. Launching many more blocks than SMs keeps every SM busy regardless of the GPU's size, with the next block assigned to whichever SM finishes.
Yes. Blocks must be written to execute independently, so the GPU can hand them to free SMs one after another. On a GPU with more SMs, more blocks make progress at the same time.
Its role is similar, but it is built differently. A CPU core advances a small number of threads as fast as possible. An SM holds many warps and switches among them to raise total throughput.
As an Amazon Associate I earn from qualifying purchases.
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.