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
- What a Memory Transaction Is
- Coalesced vs Strided Reads
- Structure of Arrays vs Array of Structs
- Measuring Effective Bandwidth