Shared Memory & SoA: Restructuring for Peak Bandwidth

For complex access patterns, shared memory acts as a user-controlled cache, allowing coalesced global memory reads into shared memory, then flexible access. Additionally, preferring 'Structure-of-Arrays' (SoA) over 'Array-of-Structures' (AoS) helps linearize data for better coalescing, sometimes requiring padding to avoid bank conflicts.

Sources

Open the full topic