Metal without Magic — When the GPU Helps Rather Than Hinders
summary
The talk explains when Apple’s Metal API actually improves performance versus when it hurts, focusing on image-processing use cases. It analyzes common architectural and measurement mistakes that cause regressions, presents a measurement methodology and success criteria, and demonstrates with single-filter and multi-pass GPU pipelines how CPU vs GPU behavior changes and when reorganizing the pipeline makes Metal pay off. The target audience is iOS developers deciding whether to use Metal for optimization.
AI-written summary · about
chapters (21)
- 0:00Metal talk introduction
- 1:02Optimizing Metal
- 2:07Metal core objects
- 6:01User latency metrics
- 8:54Tail latency importance
- 11:03Throughput vs latency
- 13:52GPU resource metrics
- 17:05Gaussian Blur demo
- 18:11Occupancy and thread groups
- 19:16Memory bandwidth and throttling
- 21:01Cache hit rate impact
- 22:04Register pressure
- 23:30Thread group size tuning
- 24:52Branch divergence
- 27:00Half precision
- 29:33Shared memory
- 32:24Kernel fusion
- 33:50Performance pitfalls
- 37:43Metal pipeline setup
- 38:04Performance summary
- 40:53Q&A
