In this article
Coalesced GPU access groups requested addresses into fewer useful memory transactions; stride, alignment and actual lane activity determine the pattern.
A GPU program requests values through addresses, but the memory system moves data in transactions. Coalescing concerns how the addresses requested together fit those transactions. This makes the relationship between neighboring lanes and neighboring data central to understanding bandwidth, independently of the total size of the allocation.
Bytes requested and bytes moved differ
A lane may request a small value while the memory subsystem services a larger aligned region. When neighboring requests share those regions, one transaction can contribute useful data to several lanes. Widely spaced addresses can require more transactions for the same mathematical output. Counting allocation bytes does not reveal this amplification. The important object is the address pattern of an actual issued memory instruction, including the subset of lanes participating in that instruction.
Primary reference: CUDA Programming Guide: Writing SIMT Kernels.
A row and a column expose different strides
Imagine a row-major matrix whose neighboring lanes read neighboring columns in one row. Their addresses are close. Asking the same lanes to read the same column across rows introduces a stride tied to the row length. Both accesses retrieve the same number of elements, but their transaction patterns differ. A tiled transpose is one way to separate the logical transformation from the memory access arrangement; it introduces its own cooperative staging work.
Primary reference: CUDA C++ Best Practices Guide.
Alignment and tails need their own attention
An apparently contiguous access can cross transaction boundaries differently after an offset changes. A partial group at the end of an array also has a different active-lane pattern from an interior group. These effects should not be confused with changing the data type or algorithm. Include offsets and non-divisible lengths in a proposed experiment. The purpose is to expose real address boundaries rather than certify a kernel using only an unusually convenient aligned input.
Primary reference: Nsight Compute Profiling Guide.
Caches can hide part of the traffic story
Repeatedly reading the same regions may serve some requests from cache, so a timing result alone cannot establish a particular external-memory transaction count. Inspect the relevant profiler metrics and their stated scope. An application with reuse and a cold streaming scan test different paths. Keep these cases separate while interpreting why a layout change helped. Coalescing concerns request grouping; cache locality concerns reuse over time, and the two mechanisms can interact.
Optimize the indexing relationship
Start by writing the address requested by each neighboring lane for the expensive load. Then compare a layout or indexing change that preserves output meaning. Report useful elements, observed transactions and completion time under the same cache conditions. This ties the experiment to a concrete mechanism. A reduction in transferred regions can explain a bandwidth improvement, while an unchanged transaction pattern directs attention toward instruction work, synchronization or another part of the kernel.
Related reading: A GPU inference benchmark you can trust; Reproducible inference stacks: preserving a GPU pilot’s result.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.