0Pricing
CUDA Academy · Lesson

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

  1. Race Conditions on the GPU
  2. atomicAdd and Friends
  3. Building a Histogram
  4. Custom Atomics with atomicCAS
← Back to CUDA Academy