[Paper Review] PASTA: A Modular Program Analysis Tool Framework for Accelerators
PASTA is a low-overhead, modular framework that unifies cross-vendor accelerator profiling and DL-framework events to enable custom, extensible performance analyses. It demonstrates GPU-accelerated, range-focused analysis and multi-GPU support with open-source tooling.
The increasing complexity and diversity of hardware accelerators in modern computing systems demand flexible, low-overhead program analysis tools. We present PASTA, a low-overhead and modular Program AnalysiS Tool Framework for Accelerators. PASTA abstracts over low-level profiling APIs and diverse deep learning frameworks, offering users a unified interface to capture and analyze runtime events at multiple levels. Its extensible design enables researchers and practitioners to rapidly prototype custom tools with minimal overhead. We demonstrate the utility of PASTA by developing several analysis tools, including a deep learning workload characterization tool and a UVM optimization tool. Through extensive evaluation on mainstream deep learning workloads tested on NVIDIA and AMD GPUs under both single- and multi-GPU scenarios, we demonstrate PASTA's broad applicability. On NVIDIA GPUs, we further show that PASTA provides detailed performance insights with significantly lower overhead, up to 1.3*10^4 faster than conventional analysis tools, thanks to its GPU-accelerated backend. PASTA strikes a practical balance between usability, extensibility, and efficiency, making it well-suited for modern accelerator-based computing environments.
Motivation & Objective
- Provide a flexible, low-overhead framework for capturing and analyzing runtime events on accelerators from multiple vendors.
- Abstract away vendor-specific profiling interfaces to enable a unified, cross-vendor analysis workflow.
- Integrate deep learning framework events to offer high-level workload context in analyses.
- Demonstrate practical utility through DL workload characterization and UVM optimization tools.
- Show scalability to single- and multi-GPU setups with reduced analysis overhead.
Proposed method
- Introduce a three-module architecture: Event Handler, Event Processor, and Tool Collection, with modular interfaces for easy extension.
- Implement a GPU-accelerated event processing path where device-side preprocessing reduces CPU-GPU overhead.
- Provide a unified event taxonomy (low-level accelerator events and high-level DL framework events) and normalizers to support cross-vendor profiling.
- Enable range-specific analysis via environment variables and Python annotations for fine-grained profiling with minimal intrusion.
- Offer a runtime-injection interface (LD_PRELOAD) to instrument applications without source changes.
- Develop example tools (e.g., DL workload characterization, UVM optimization) to validate extensibility and overhead benefits.
Experimental results
Research questions
- RQ1How can a unified, extensible framework capture both low-level accelerator events and high-level DL framework events across multiple vendors?
- RQ2What is the overhead and effectiveness of a GPU-resident collect-and-analyze model compared to CPU-based analysis in profiling DL workloads?
- RQ3Can a modular tool collection support rapid prototyping of custom analyses with minimal instrumentation?
- RQ4How does Pasta perform in single- and multi-GPU scenarios for mainstream DL workloads?
- RQ5What kinds of insights (kernel bottlenecks, memory patterns, UVM behaviors) can be gained with Pasta-based tools?
Key findings
- Pasta provides cross-vendor support for NVIDIA and AMD GPUs with DL framework integration and open-source availability.
- The GPU-accelerated analysis backend reduces overhead, achieving significantly faster profiling than conventional tools (GPU-accelerated backend).
- Case studies show actionable insights such as kernel bottlenecks, memory underutilization, and UVM prefetching optimization.
- Pasta’s modular design enables rapid prototyping of custom analyses with minimal changes to the framework.
- Multi-GPU setups can be profiled by associating events with devices, with per-rank or per-node profiling in distributed contexts.
- Tools built with Pasta achieve lower overhead and richer cross-layer visibility than vendor-specific profiling pipelines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.