Shared Memory
What is Shared Memory?
In one sentence: Shared memory can mean memory that several processors use together, or a small, very fast memory area inside a GPU that a group of cores shares.
Inside GPUs, shared memory acts like a tiny super-fast workspace for nearby cores. Tricks like FlashAttention use it to avoid slow trips to main memory. On laptops, "shared GPU memory" means the graphics chip is borrowing system RAM.
What does Shared Memory look like?
FlashAttention keeps small blocks of attention math in GPU shared memory to work faster.
Why does Shared Memory matter?
Using shared memory well is a big part of making AI software fast.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/shared-memory/">Shared Memory, explained simply</a> (The AI Math Dictionary)