Skip to main content

Bank Conflict Demo

Key Insight

Avoiding bank conflicts is essential for maximizing the speed of shared memory accesses on a GPU. Because shared memory is divided into 32 distinct memory banks that handle requests in parallel, having multiple threads in a warp request different addresses in the same bank forces the hardware to serialize those accesses. Designing data access patterns that distribute thread requests evenly across banks avoids serialization stalls, ensuring near-instantaneous memory retrieval.