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
- The Default Stream Trap
- Creating and Using Streams
- Events for Timing and Sync
- Overlapping Copy and Compute