iCreatAI News
Skip to content
Meta Engineering·· 6 days agoAI score38

Extending LLDB to Debug Applications That Span CPUs and GPUs

Extending LLDB to Debug Applications That Span CPUs and GPUs

AI summary

Meta describes a vendor-neutral accelerator plugin architecture in lldb-server that separates shared debugger infrastructure from hardware-specific device control, representing the CPU and GPU as separate LLDB targets within one debugging session. The plugin translates a vendor's device debugging API into LLDB concepts such as processes, threads, registers, memory, modules, and stop reasons, and is activated only when the application uses a supported GPU runtime. Most of the common framework has been upstreamed to LLVM, including the plugin interface, GDB-remote packets, and hardware-independent mock tests.

Source: Meta Engineering · engineering.fb.com