Keeping your device fed
summary
Advice: keep the GPU fed by front-loading work and avoid empty stalls that create pipeline bubbles; prefer submitting more independent work before a barrier, use events for overlapping transitions, and semaphores between queues plus fences for CPU reuse rather than deviceWaitIdle. Use validation layers to catch wrong stage/access/layout enum combos and improved profiling/tracing to find stalls. A practical tool is a single-header library that maps the messy enums; it already integrates with one app and passes validation, reducing manual spec lookups.
AI-written summary · about
chapters (16)
- 0:00Introduction to GPU feeding
- 0:32Why synchronization matters
- 2:17Pipeline barriers and bubbles
- 5:06Synchronization primitives overview
- 6:51Events vs pipeline barriers
- 7:11Semaphores between queues
- 7:57Submission and fences explained
- 9:21Resource reuse with fences
- 10:01Device wait and queue idle
- 11:05Programmer guidelines for sync
- 12:51New tools and validation
- 14:36Profiling and tracing tools
- 16:22Synchronization examples
- 16:43Simplifying enum complexity
- 20:40Summary and tools recap
- 21:01Q&A session
