Race Conditions on the GPU
Why concurrent writes corrupt data.
Many Hands, One Counter
On the GPU, thousands of threads can touch the same memory at once. When several write to one spot together, you get a race condition. 🏁
What a Race Really Is
A race condition happens when the final result depends on the unpredictable order in which threads run. Same code, different answer each launch.
All lessons in this course
- Race Conditions on the GPU
- atomicAdd and Friends
- Building a Histogram
- Custom Atomics with atomicCAS