Facebookยท
Extending LLDB to Debug Applications That Span CPUs and GPUs
TL;DR
Debugging applications that move between CPUs and GPUs is difficult because the hardware has different execution models and memory spaces, and vendor-specific debuggers duplicate shared functionality. Meta extended LLDB with vendor-neutral accelerator plugins that coordinate separate CPU and GPU targets within one debugging session. The architecture is already supporting GPU debugging efforts at Meta, with most shared infrastructure upstreamed to LLVM and no runtime computational overhead for CPU-only applications.
Relevant links
- DevInfraengineering.fb.com
- Greg Claytonengineering.fb.com
- Satyanarayana Jangaengineering.fb.com
- Jeffrey Tanengineering.fb.com
- Janet Yangengineering.fb.com
- Bar Soloveychikengineering.fb.com
- Chen Liengineering.fb.com
- Vipul Bansalengineering.fb.com
- vector dot-product HIP samplegist.github.com
- heterogeneous fleet of GPUsai.meta.com
- Share on Facebook (Opens in new window) Facebookengineering.fb.com
- Share on Threads (Opens in new window) Threadsengineering.fb.com