0PricingLogin
CUDA Academy · Lesson

Creating and Using Streams

Issuing independent work queues.

Independent Work Queues

A non-default stream is your own work queue. Two streams run independently, so the GPU can make progress on both at once. 🧵

The Stream Handle

A stream lives in a cudaStream_t handle. You create it once, pass it to your calls, and destroy it when you are done.

cudaStream_t stream;

All lessons in this course

  1. The Default Stream Trap
  2. Creating and Using Streams
  3. Events for Timing and Sync
  4. Overlapping Copy and Compute
← Back to CUDA Academy