0PricingLogin
CUDA Academy · Lesson

Coalesced vs Strided Reads

How thread-to-address mapping matters.

It Is All About Mapping

Coalescing depends on which address each thread touches. The map from thread to address decides whether one transaction serves the whole warp.

The Coalesced Pattern

When neighboring threads read neighboring addresses, the warp covers one contiguous run. That tidy layout is a coalesced access.

int i = blockIdx.x * blockDim.x + threadIdx.x;
float v = data[i];

All lessons in this course

  1. What a Memory Transaction Is
  2. Coalesced vs Strided Reads
  3. Structure of Arrays vs Array of Structs
  4. Measuring Effective Bandwidth
← Back to CUDA Academy